Closed atikrahman-ew closed 6 years ago
Do you want to do this?
$role->can(array('this', 'that'));
@tkovs yes wanted to do something like that. but its giving error .... Call to undefined method Illuminate\Database\Query\Builder::can()
Solved $role->hasPermission(array('complete-client-form'));
is there any way we can check role permission by model ???????
$user->can(['edit-user', 'create-post']);
Like THat $role->can(['edit-user', 'create-post']); is anything like that possible ???