kodeine/laravel-acl

isRole is not Working Laravel 5.6

marvinhosea opened this issue · 1 comments

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

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