kodeine / laravel-acl

Light-weight role-based permissions system for Laravel 6+ built in Auth system.
MIT License
787 stars 217 forks source link

isRole is not Working Laravel 5.6 #227

Closed marvinhosea closed 6 years ago

marvinhosea commented 6 years ago

THIS IS THE CODE I AM RUNNING

$user = $request->user(); if ($user->user_type == Constants::SCHOOL_USER){ $role = Role::where('slug','school_admin')->get(); if (count($role) > 0){ $getRole = $role->first()->slug; dd($getRole,$user->getRoles(),$user->isRole($getRole)); } }

THIS IS THE RESPONSE

error

marvinhosea commented 6 years ago

FUCK WHEN YOU UPDATE YOUR CODE YOU SHOULD ALSO UPDATE YOUR DOCUMENTATION TOO. IT IS hasRole not isRole