model_type: App\User
Did you manually add this record; the FQCN (by default) should be App\Models\User
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi community!
I'm dealing with a very strange issue regarding the Laravel package Laravel-Permissions from Spatie (v 5.10.0). I've successfully installed the package using Composer2 by following the official guide. And did all further steps, described as follows:
$ php artisan config:clear)$ php artisan migrate)HasRoles the user modelAfter that I've created a role called admin and applied that role to my user account:
Expected behaviour
Role has been set and can be used in routes.php and in blade views as well using something like:
Current behaviour
Do you have any ideas what I can do? I've used the package a couple of times and never had such issues.
Thanks, wish you a nice day! nklss
model_type: App\User
Did you manually add this record; the FQCN (by default) should be App\Models\User
Please or to participate in this conversation.