-
Notifications
You must be signed in to change notification settings - Fork 328
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
[Symfony\Component\Debug\Exception\FatalErrorException] Class 'App\User' not found #40
Comments
You should read the repo issues first: #21. Although not sure this is exactly your problem. |
This is the exact stacktrace I'm getting: when I correct it to the correct namespace manually, there's no error My auth.model config has been pointing to the correct model all this time |
@happyDemon when you change the Bouncer will use that information to correctly get the model. Which version of Bouncer are you using? |
@happyDemon has this been fixed? If not, can you please provide more information about your isuue? |
It's been fixed, I'm completely baffled why it didn't give an error the second time I installed. |
Using laravel 5.1,
some classes in your Database namespace expect App\User to be present in my installation.
However, my app namespace is different and my models were put in to a folder called 'Models' under the app namespace.
I see that you're just using it as a reference to load the actual user model class. Wouldn't it be better to just use a string instead of a reference.
A lot of applications won't have it present in the App namespace and/or have it available at the top of that namespace.
The text was updated successfully, but these errors were encountered: