laravel-restify

The fastest way to make a powerful JSON:API compatible Rest API with Laravel.

MIT License

Downloads
321.1K
Stars
600
Committers
20

Bot releases are hidden (Show)

laravel-restify - 7.3.1

Published by binaryk about 2 years ago

Fixed

  • Publish provider before routes so restifyAuth macro works.
laravel-restify - 7.3.0

Published by binaryk about 2 years ago

Added

  • Singleton could be loaded from the RestifyServiceProvider in the local repository so the dev will have control over that.
laravel-restify - 7.2.1

Published by binaryk about 2 years ago

Fixed

  • Nova routes conflict.
laravel-restify - 7.2.0

Published by binaryk about 2 years ago

Added

  • Loading routes from the LaraveRestifyApplicationProvider so developers could override or comment that out.
laravel-restify - 7.1.0

Published by binaryk about 2 years ago

Added

  • [6.x] Bulk update and deletion callbacks.
laravel-restify - 7.0.0

Published by binaryk about 2 years ago

[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

laravel-restify - 6.12.1

Published by binaryk over 2 years ago

Fixed

  • Bulk deletion issue
laravel-restify - 6.12.0

Published by binaryk over 2 years ago

Added

  • Bulk side effect actions fixed.
laravel-restify - 6.11.1

Published by binaryk over 2 years ago

Performance

  • Do not check relationships if no query with relationships.
laravel-restify - 6.11.0

Published by binaryk over 2 years ago

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()),
    ];
}
laravel-restify - 6.10.0

Published by binaryk over 2 years ago

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.

laravel-restify - 6.9.3

Published by binaryk over 2 years ago

Fixed

  • Change return value of handle method in getter #455
laravel-restify - 6.9.2

Published by binaryk over 2 years ago

Fixed

  • Boolean match filter
laravel-restify - 6.9.1

Published by binaryk over 2 years ago

Fixed

  • Fixing scout search.
laravel-restify - 6.9.0

Published by binaryk over 2 years ago

Added

  • Support to choose custom columns for BelongsTo and BelongsToMany and MorphMany relationships

Fixed

  • Getter requests dump
laravel-restify - 6.8.2

Published by binaryk over 2 years ago

Fixed

  • Fixed image has filesystem on null.
laravel-restify - 6.8.1

Published by binaryk over 2 years ago

Fixed

  • related fix
laravel-restify - 6.8.0

Published by binaryk over 2 years ago

Added

Load specific columns

Sometimes you might want to load specific columns from the database into the response. For example, if you have a Post model with an id, title and a description column, you might want to load only the title and the description column in the response.

In order to do this, you can use in the request:

GET /users/1?include=posts[title|description]
laravel-restify - 6.7.1

Published by binaryk over 2 years ago

Fixed

  • dd removed
laravel-restify - 6.7.0

Published by binaryk over 2 years ago

Added

Case-sensitive search

By default, Restify search is case-sensitive. You can change this behavior by changing the configuration:

// restify.php

  'search' => [
      /*
      | Specify either the search should be case-sensitive or not.
      */
      'case_sensitive' => false,
  ],
Package Rankings
Top 6.09% on Packagist.org
Related Projects