Ivanhoe1325

Results 1 issues of Ivanhoe1325

I have two errors in the RoleMiddelware. Both the hasRole and the can methods are marked as undefined. public function handle($request, Closure $next, $role, $permission = null) { if(!auth()->user()->hasRole($role)) {...