romegasoftware/Multitenancy

php artisan multitenancy:super-admin <email> User model \App\User can not be found!

Closed this issue · 2 comments

Hi I have a brand new installation of a NOVA application, I followed the steps installing this package. In the step when I want to assign my user as admin I see this error:

User model \App\User can not be found!

Maybe is just something simple, hope you guys can give me some insight.

Thanks in advance.

Seems like we forgot to change the reference to the new App\Models\User Namespace in the [command] (https://github.com/romegasoftware/Multitenancy/blob/master/src/Commands/AssignAdminPrivileges.php#L20).

you can still override it for now by specifying the user model in the model option

php artisan multitenancy:super-admin <email> —model=“App\Models\User”

Thanks @Naoray ! yeah that made the magic, thanks so much!