Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User model location #64

Open
olivervo opened this issue Feb 26, 2021 · 4 comments
Open

User model location #64

olivervo opened this issue Feb 26, 2021 · 4 comments

Comments

@olivervo
Copy link

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
Copy link
Author

Update:

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

Should ideally be the default going forward.

@fredroo
Copy link

fredroo commented Oct 23, 2021

@m2de can you look at this

@fredroo
Copy link

fredroo commented Oct 23, 2021

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

@fredroo
Copy link

fredroo commented Oct 23, 2021

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

yayann added a commit to SGS-Optimisation/novatoolpermissions that referenced this issue Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants