From 3bf179b7eb2b7912032c1e7ced73e92edcd8206d Mon Sep 17 00:00:00 2001 From: Chris Brown Date: Sun, 19 Nov 2023 02:58:03 -0500 Subject: [PATCH] Add note about needing to implement canAny in User model --- docs/installation-lumen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation-lumen.md b/docs/installation-lumen.md index 7709777e..84189b34 100644 --- a/docs/installation-lumen.md +++ b/docs/installation-lumen.md @@ -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