php – Spatie Laravel Permission Error of Too few arguments to function-ThrowExceptions

Exception or error:

I need help with spatie/Laravel permissions. when I try to assign roles gives me this error
Too few arguments to function Spatie\Permission\Middlewares\RoleMiddleware::handle(), 2 passed in C:\Users\user pc\Documents\website\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php on line 171 and exactly 3 expected

How to solve:

Follow the below link. Maybe you will get your desire result.

Leave a Reply

Your email address will not be published. Required fields are marked *