Closed francoism90 closed 2 years ago
I'm trying to use an array to check on roles, however I'm getting an Invalid model indentifier error.
roles
Invalid model indentifier
Is it not possible to use an array? Any workarounds?
$user->isNotAn(['super-admin', 'admin' ..])
Thank you.
Solved it: $user->isNotAn(...['super-admin', 'admin' ..])
$user->isNotAn(...['super-admin', 'admin' ..])
I'm trying to use an array to check on
roles
, however I'm getting anInvalid model indentifier
error.Is it not possible to use an array? Any workarounds?
Thank you.