#The given role or permission should use guard `` instead of `web`. - Spatie Roles in an artisan com

3 messages · Page 1 of 1 (latest)

quaint nacelle
#

I know this isn't fully laravel directly but wondering if anyone has had this issue. I run an artisan command that creates a user, then I obtain the Role via \Spatie\Permission\Models\Role then try to $user->assignRole($role); But I keep getting this error.

#

For context, if I run in my code or in tinker, this works fine

opal shoal