Skip to content

Releases: BinarCode/laravel-restify

7.1.0

24 Jul 11:45
Compare
Choose a tag to compare

Added

  • [6.x] Bulk update and deletion callbacks.

7.0.0

24 Jul 10:41
a775094
Compare
Choose a tag to compare

[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

6.12.1

15 Jul 07:07
98d7e9e
Compare
Choose a tag to compare

Fixed

  • Bulk deletion issue

6.12.0

14 Jul 16:15
Compare
Choose a tag to compare

Added

  • Bulk side effect actions fixed.

6.11.1

13 Jul 13:52
5a9b405
Compare
Choose a tag to compare

Performance

  • Do not check relationships if no query with relationships.

6.11.0

19 May 08:14
Compare
Choose a tag to compare

Added

  • setTitle for filters so the FE could display them
public static function matches(): array
{
    return [
        'invoice_id' => MatchFilter::make()
            ->setType('array')
            ->setTitle('Job Number')
            ->setRelatedRepositoryKey(InvoiceRepository::uriKey()),
    ];
}

6.10.0

04 May 13:39
a7f7299
Compare
Choose a tag to compare

Added

Bulk delete flow

The payload for a bulk delete should contain an array of primary keys for the models you want to delete:

[
  1, 10, 15
]

These models will be resolved from the database and check for the deleteBulk policy permission, in case any of the models isn't allowed to be deleted, no entry will be deleted.

6.9.3

14 Apr 10:14
e60b8bb
Compare
Choose a tag to compare

Fixed

  • Change return value of handle method in getter #455

6.9.2

29 Mar 11:39
68ad473
Compare
Choose a tag to compare

Fixed

  • Boolean match filter

6.9.1

04 Mar 13:07
00c5083
Compare
Choose a tag to compare

Fixed

  • Fixing scout search.