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
Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.