NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #5106 most downloaded on Packagist
Laravel REST API helpers
Latest stable
10.5.6
Last release 20 days ago
02 Nov 2026
Release timing varies
gaps range from 8 days to 2 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
320 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
This will enable policies to be cached by adding the configuration:
This will enable policies to be cached by adding the configuration:
'cache' => [
/*
| Specify the cache configuration for the resources policies.
| When enabled, methods from the policy will be cached for the active user.
*/
'policies' => [
'enabled' => true,
/*
| ttl in seconds
*/
'ttl' => 5 * 60,
],
],
Added support for nested relationships when you want to get the parent and children in the same query. Imagine a tweet thread, where you want to list
YourRepository::partialMock() for the index request, previously it ran into the mock state and didn't update the second resources in tests.$eagerState repository property is now private, and it is of type null|string because it holds the parent repository that renders it.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Publish provider before routes so restifyAuth macro works.
restifyAuth macro works.Singleton could be loaded from the RestifyServiceProvider in the local repository so the dev will have control over that.
RestifyServiceProvider in the local repository so the dev will have control over that.## Fixed - Nova routes conflict.
Loading routes from the LaraveRestifyApplicationProvider so developers could override or comment that out.
[6.x] Bulk update and deletion callbacks.
[x] Adding support for custom ActionLogs (ie ActionLog::register("project marked active by user Auth::id()", $project->id))
ActionLog::register("project marked active by user Auth::id()", $project->id))$with loads relationship in show requestsPostRepository::withModels(Post::query()->take(5)->get())->include('user')->serializeForShow() - see seralizer()api/restify/company/include=users.posts[id, name].comments[title])a.b.c.d)HasMany::make('posts')see Change Log and Upgrading guideline
Belongs search with custom foreign key #512
## Fixed - Bulk deletion issue
Bulk side effect actions fixed.
Do not check relationships if no query with relationships.
setTitle for filters so the FE could display them
setTitle for filters so the FE could display thempublic static function matches(): array
{
return [
'invoice_id' => MatchFilter::make()
->setType('array')
->setTitle('Job Number')
->setRelatedRepositoryKey(InvoiceRepository::uriKey()),
];
}
The payload for a bulk delete should contain an array of primary keys for the models you want to delete:
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.
Change return value of handle method in getter #455
## Fixed - Boolean match filter
## Fixed - Fixing scout search.
Support to choose custom columns for BelongsTo and BelongsToMany and MorphMany relationships
BelongsTo and BelongsToMany and MorphMany relationshipsFixed image has filesystem on null.
has filesystem on null.Nothing published for this version
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 d
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]
Nothing published for this version
By default, Restify search is case-sensitive. You can change this behavior by changing the configuration:
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,
],
Restify already provides powerful filters and get routes with relationships. However, sometimes you might want to get some extra data for your reposit
Restify already provides powerful filters and get routes with relationships. However, sometimes you might want to get some extra data for your repositories.
Let's say you have a stripe user. This is how you retrieve the stripe user information through a get request:
Route::get('users/stripe-information', UserStripeController::class);
// UserStripeController.php
public function __invoke(Request $request)
{
...
}
The classic approach is good, however, it has a few limitations. Firstly, you have to manually take care of the route middleware, the testability for these endpoints should be done separately which is hard to maintain. And finally, the endpoint is disconnected from the repository, which makes it feel out of context so has a bad readability.
So, code readability, testability and maintainability become hard.
See more: https://restify.binarcode.com/api/getters
Allow define skipFieldFill in actions, so you can keep default behavior for actionable fields.
skipFieldFill in actions, so you can keep default behavior for actionable fields.RestResponse index method to accept Paginator interface.
## Added - Laravel 9 support
Fixed conflict with telescope. See this.
AddedRepositories event, see Upgrading guideline for more details.dbal version https://github.com/BinarCode/laravel-restify/pull/443
Filtering using only query args for matchable
HasMany type of relationships will filter unauthorized items.
Nothing published for this version
Added rules method for actions and deprecated payload
rules method for actions and deprecated payloadRoute::restifyAuth() macro to intantiate auth routes.Configurable matchable filtering.
Use actionable fields in bulk requests #433
Reverting AuthController as it's a breaking change for a minor release.
AuthController as it's a breaking change for a minor release.Reverting AuthController as it's a breaking change for a minor release.
AuthController as it's a breaking change for a minor release.Support for include along with related to get relationships.
include along with related to get relationships.Nothing published for this version
Repository action testing helper.
action testing helper.# Added - ok() global helper
ok() global helperFree signature for the stored hook in the repository.
Free signature for the stored hook in the repository.
stored hook in the repository.# Fixed - Update user profile
Prevent action handlers from being called when iterating over non-actionable fields
# Fixed - Actionable fields bugs
Addressing the https://github.com/BinarCode/laravel-restify/discussions/413 idea.
Addressing the https://github.com/BinarCode/laravel-restify/discussions/413 idea.
Now you can configure an action class for you fields:
field('followers')->actionable(Action::make())
Make sure the action gets the Model as it's second argument.
Attach request resolve the base model.
Nothing published for this version
Performance improvements for the relationships loading.
# Fixed - Auth controller & tests
Custom controllers for Auth module.
Nothing published for this version
Nothing published for this version
# Fixed - Setup & migrations files.
Nothing published for this version
Publishing migrations when running restify:setup command.
restify:setup command.Changed default auth controllers.
Nothing published for this version
# Added - Support for spatie/once v3.
One column per quarter.