In your app/models folder, do you have a User.php file?
I find whenever Laravel can't find a class, the best first step to try is running 'composer dump-autoload'. Might be as simple as that?
ChrisSoutham said:
In your app/models folder, do you have a User.php file?
Hi Chris, thanks! Yes, I do! [fortizmu@web433 models]$ ll total 8 -rw-rw-r-- 1 fortizmu fortizmu 843 Feb 15 04:44 User-orig.php -rw-rw-r-- 1 fortizmu fortizmu 31 Feb 27 09:56 User.php
The contents are just what is what written in the "http://laravel.com/docs/quick": class User extends Eloquent {}
cgoosey1 said:
I find whenever Laravel can't find a class, the best first step to try is running 'composer dump-autoload'. Might be as simple as that?
Hi! I've tried... but same result :-( Could it be that the app is being served at http://laraveltest.sumutec.com/public/users instead of at http://laraveltest.sumutec.com/users ?
Hello! Now it is finally working! :-)
I just used the app/models/User.php that is originally generated during Laravel installation (which I replaced with the one mentioned here http://laravel.com/docs/quick -> "Eloquent ORM"). This instruction was misleading for me...
Ok, for now, it is working :-)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community