Support the ongoing development of Laravel.io →
posted 9 years ago
Database
Last updated 2 years ago.
0

update:

I added namespace to user.php (namespace App\Models;) and now the error is:

[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'User' not found

0

put Using App/User; in the file at the top. if your models are in the App/Models folder try Using App/Models/User;

I can't remember which way the / or \ needs to go so try the other if one doesnt work.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

chriz74x chriz74x Joined 8 Apr 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.