Replies: 1 comment
-
If you want help, make a simple minimal application on a laravel fresh installation |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey eveyrone.
Having an issue with the middleware.
I've got an admin role which has 3 permissions
Now the admin role has been assigned these permissiosn and my admin user (App\Models\User) has been correctly configured with the HasRoles and the roles and permissions load when i run the following functions.
Now when I try to use the middlewares:
Route::prefix('processes')->middleware(['can:edit_processes'])->group(__DIR__ . '/tenant-api/process-management.php');
or
Route::prefix('processes')->middleware(['permission:edit_processes'])->group(__DIR__ . '/tenant-api/process-management.php');
I get an unauthorized message.
I am also using UUIDs and have configured this correctly as per the guide.
Can someone help me please or point me in the right direction.
Beta Was this translation helpful? Give feedback.
All reactions