Support the ongoing development of Laravel.io →
Eloquent

Hi guys, I am having a bit of trouble with the app migrating to the production server. I have a class in app/model directory. Everything is working fine on localhost. But when i migrated the application to the VPS (Ubuntu and nginx) by git clone, it shows error "Class not found" for the class which is in app/models. I tried dump-autoload as well but still the same error. I also checked for mapping in vendor/composer/autoload_classmap.php and mapping is there. I dont seems to get it why this is happening.

Any help would be appreciated.

Cheers, Chintan

Last updated 2 years ago.
0

Could it be a php version or a setting difference? Do the laravel or php logs give you any more details like the path it is looking in?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.

© 2025 Laravel.io - All rights reserved.