Skip to content

7.0.0

Compare
Choose a tag to compare
@binaryk binaryk released this 24 Jul 10:41
· 75 commits to 7.x since this release
a775094

[7.0.0] 2022-07-24

  • Adding support for custom ActionLogs (ie ActionLog::register("project marked active by user Auth::id()", $project->id))
  • Ensure $with loads relationship in show requests
  • Make sure any action isn't permitted unless the Model Policy exists
  • Having a helper method that allow to return data using the repository from a custom controller PostRepository::withModels(Post::query()->take(5)->get())->include('user')->serializeForShow() - see seralizer()
  • Ability to make an endpoint public using a policy method
  • Load specific fields for nested relationships (ie: api/restify/company/include=users.posts[id, name].comments[title])
  • Load nested for relationships with a nested level higher than 2 (so now you can load any nested level you need a.b.c.d)
  • Shorter definition of Related fields HasMany::make('posts')
  • Performance improvements

see Change Log and Upgrading guideline