update:
I added namespace to user.php (namespace App\Models;) and now the error is:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'User' not found
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.