Skip to content

Commit

Permalink
Add note about needing to implement canAny in User model
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte authored Nov 19, 2023
1 parent c66c0de commit 3bf179b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/installation-lumen.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ php artisan migrate

---
## User Model
NOTE: Remember that Laravel's authorization layer requires that your `User` model implement the `Illuminate\Contracts\Auth\Access\Authorizable` contract. In Lumen you will then also need to use the `Laravel\Lumen\Auth\Authorizable` trait.
NOTE: Remember that Laravel's authorization layer requires that your `User` model implement the `Illuminate\Contracts\Auth\Access\Authorizable` contract. In Lumen you will then also need to use the `Laravel\Lumen\Auth\Authorizable` trait. And if you want to use middleware from this package, you will need to implement the `canAny()` method from [Illuminate\Foundation\Auth\Access\Authorizable](https://github.com/laravel/framework/blob/10.x/src/Illuminate/Foundation/Auth/Access/Authorizable.php) in your `User` model because Lumen doesn't include it in its `Authorizable` trait.

---
## User Table
Expand Down

0 comments on commit 3bf179b

Please sign in to comment.