Support the ongoing development of Laravel.io →
Configuration Eloquent
Last updated 2 years ago.
0

In your app/models folder, do you have a User.php file?

Last updated 2 years ago.
0

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?

Last updated 2 years ago.
0

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 {}

Last updated 2 years ago.
0

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 ?

Last updated 2 years ago.
0

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 :-)

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

fortizmu fortizmu Joined 27 Feb 2014

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.