Skip to content

v4.0.0

Compare
Choose a tag to compare
@elpete elpete released this 24 Jul 15:14

BREAKING

  • Scopes: Scopes with an OR combinator are automatically grouped (3183f6d)

chore

  • docs: Fix broken link from README to official docs (6881634)

feat

  • Relationships: Add a withCount method to easily add relationship counts to entities (8524ef8)
  • QuickBuilder: Automatically scope whereHas and whereDoesntHave callbacks
    (38b8a46)

fix

  • ErrorMessages: Improve error message when attempting to set relationships on unloaded entities
    (fe4ad26)
  • Relationships: Fix addSubselect and *manyThrough overflows and bugs
    (ab8e121)
  • BelongsTo: If all the foreign keys are null, skip the database and return the default entity or null (287e990)
  • BelongsTo: Reference provided localKeys instead of pulling them from the related entity (43f47aa)
  • HasManyThrough: Swap final compare constraints in nested query
    (22d1728)