dokunbam
1889
22
Laravel

Class App\Http\Middleware\CheckRole does not exist

Posted 8 months ago by dokunbam

I followed a tutorial for admin and superadmin role and permission which I followed https://www.5balloons.info/user-role-based-authentication-and-access-control-in-laravel/

But when I signed in I got this error

Call to undefined method Transcribe\User::roles()

When I navigate to /home. no error

But when I navigate to /admin or /superadmin

I got an error again

Class App\Http\Middleware\CheckRole does not exist

Please sign in or create an account to participate in this conversation.