Cvetan

How to move Laravel User model inside App\Models namespace?

Posted 2 months ago by Cvetan

I've set the namespace of class and also configured that inside config/auth.php, but when I try to login I get this error:

 Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Class '\App\User' not found

How can I fix this and make App\Models default namespace for Laravel models?

Laravel 5.8

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.