We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is my first issue & i'm a beginner and naive, who's learning programming!
On This page, https://spatie.be/docs/laravel-permission/v5/basic-usage/middleware#content-package-middleware
'role' => \Spatie\Permission\Middleware\RoleMiddleware::class,
when i tried registering package middleware inside kernel file it threw error
Target class [Spatie\Permission\Middleware\RoleMiddleware] does not exist.
i resolved it by replacing it to
'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
The first set uses Middleware as the namespace, while the second set uses Middlewares.
Middleware
Middlewares
Changing it to Middlewares solved my issue.
i think docs has this typo so creating this issue!
I'm on PHP 8.1.24 Laravel 10.28.0
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Thanks for pointing it out. Will be releasing v6 this week, so the docs will be back in sync again then! Apologies for any confusion!
No branches or pull requests
This is my first issue & i'm a beginner and naive, who's learning programming!
On This page,
https://spatie.be/docs/laravel-permission/v5/basic-usage/middleware#content-package-middleware
'role' => \Spatie\Permission\Middleware\RoleMiddleware::class,
when i tried registering package middleware inside kernel file it threw error
i resolved it by replacing it to
'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
The first set uses
Middleware
as the namespace, while the second set usesMiddlewares
.Changing it to Middlewares solved my issue.
i think docs has this typo so creating this issue!
I'm on
PHP 8.1.24
Laravel 10.28.0
The text was updated successfully, but these errors were encountered: