Silvanite / novatoolpermissions

Laravel Nova Permissions Tool (User, Roles and Permissions / Access Control (ACL))
MIT License
101 stars 33 forks source link

User model location #64

Open olivervo opened 3 years ago

olivervo commented 3 years ago

My application has the models in a App\Models folder as per the latest Laravel 8 standard. This is causing an App\User not found error. Is there a way to set the User model location manually?

olivervo commented 3 years ago

Update:

This can be temporarily solved by adding USER_MODEL=App\Models\User to .env.

Should ideally be the default going forward.

fredroo commented 3 years ago

@m2de can you look at this

fredroo commented 3 years ago

@olivervo publish with nova publish the tag brandenburg.php to solve your problem

fredroo commented 3 years ago

i forget explaining, will generate a file brandenburg.php in config folder

<?php

return [
    /**
     * User model class name.
     */
    'userModel' => env('USER_MODEL', 'App\User'),

    /**
     * Configure Brandenburg to not register its migrations.
     */
    'ignoreMigrations' => false,
];

close this issue