Skip to content

3.5.0

Compare
Choose a tag to compare
@binaryk binaryk released this 24 May 15:52
· 174 commits to 3.x since this release

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.