Wednesday, 15 January 2014

php - laravel not class found in deployment server -



php - laravel not class found in deployment server -

i have laravel 4 application working fine on local machine. i've cloned onto vps. when run composer install or composer update, errors "class not found". i've checked vendor/composer/autoload_classmap.php , classes there. class located in standard app/models/. removed code, allowed composer update. none of custom classes located within app/models beingness loaded. 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' message 'class 'role' not found' in ../app/routes.php:214 stack trace: #0 [internal function]: illuminate\exception\handler->handleshutdown() #1 {main} [] []

role.php 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 total route, that's essential it. works fine on local machine also.

i found problem help of others. vps did not back upwards short tags. role.php began <?. corrected <?php , works.

php laravel

No comments:

Post a Comment