Releases: BinarCode/laravel-restify
Releases · BinarCode/laravel-restify
4.0.1
4.0.0
Added
- Available filters.
- Fields for relations.
- Security improvements.
- Mock data generator:
php artisan restify:stub users --count=10
now support relations
And much much more, see official documentation.
3.18.0
3.17.0
Added
3.16.0
Added
Standalone actions
Sometimes you don't need to have an action with models. Let's say for example the authenticated user wants to disable his account. For this we have standalone
actions:
// UserRepository
public function actions(RestifyRequest $request)
{
return [
DisableProfileAction::new()->standalone(),
];
}
URI Key
Usually the URL for the action is make based on the action name. You can use your own URI key if you want:
class DisableProfileAction extends Action
{
public static $uriKey = 'disable_profile';
//...
}
3.15.0
Added
mainQuery
on repositories, now you can use this for show and index endpoints- Added
Binaryk\LaravelRestify\Models\CreationAware
interface. Now you can extend it, and you will take the control over the model saving - now you can add a single entity to related
3.14.0
3.13.0
3.12.2
3.12.1
Added
Profile via User Repository
You can use the UserRepository
(if you have one), to resolve the profile and perform the updates over the profile by using the UserProfile
trait in your repository:
class UserRepository extends Repository
{
use Binaryk\LaravelRestify\Repositories\UserProfile;
}
Checkout the documentation for more details.