3.5.0
Added
- Possibility to add custom middleware the repository level:
public static $middlewares = [
PostAbortMiddleware::class,
];
or if you need RestifyRequest you can override the collecting method:
public static function collectMiddlewares(RestifyRequest $request): ?Collection
{
if ($request->isStoreRequest()) {
return collect([PostAbortMiddleware::class]);
}
}
- Adapting profile endpoint to return
attributes
property.