I have a Laravel 4 application working fine on my local machine. I've cloned it onto my VPS. When I run composer install or composer update, I get errors that "class not found". I've checked vendor/composer/autoload_classmap.php and my classes are there. The class is located in the standard app/models/. I removed some code, which finally allowed the composer to update. However none of my custom classes all located inside app/models are being loaded. Any ideas what's going on? Thanks.
Local: php version 5.5.10 VPS: php version 5.5.9
Edit: Included error log
[2014-10-23 02:50:37] production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Role' not found' in ../app/routes.php:214
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
Role.php is located in app/models/
Edit2: Added route
Route::group(array('before' => 'auth.admin'), function() {
$roles = new Role();
Route::get('/help', array(
'as' => 'help',
'uses' => 'HelpController@getHelp'
));
}
This isn't the full route, but that's essential it. Everything works fine on local machine also.
composer updateandcomposer dumpautoloadcomplete without errors?Roleclass is inside theRole.phpfile. If you develop on Windows machine, the file name is case insensible while your Linux VPS cares the differences betweenRole.phpandrole.php