Laravel 4 Error After install composer its says

August 8, 2014 5k views

Hello there , I uploading my laravel 4 app and install composer too but when I do php artisan migrate:install its says:

PHP Warning: require(/var/www/bootstrap/../vendor/autoload.php): failed to open
stream: No such file or directory in /var/www/bootstrap/autoload.php on line 17

PHP Fatal error: require(): Failed opening required '/var/www/bootstrap/../vend
or/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/b
ootstrap/autoload.php on line 17

3 Answers

You will need to create the files that handle autoloading first:

php artisan dump-autoload

Hello Kamal Nasser Thanks for replay

The Error still there, I'm not expert on laravel 4 sorry

but I search in google and I found this coomand " composer dump-autoload "

when I do it it says :

PHP Fatal error: Class 'Patchwork\Utf8\Bootup' not found in /var/www/bootstrap/
autoload.php on line 46

Did you only installed composer or also did a 'composer update' (or 'composer install') in the directory Laravel is location (same level as composer.json)?

Have another answer? Share your knowledge.