JosephSilber / bouncer

Laravel Eloquent roles and abilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

isAn, isNotAn, isAll - does not accept an array

francoism90 opened this issue · comments

I'm trying to use an array to check on roles, however I'm getting an Invalid model indentifier error.

Is it not possible to use an array? Any workarounds?

$user->isNotAn(['super-admin', 'admin' ..])

Thank you.

Solved it: $user->isNotAn(...['super-admin', 'admin' ..])