Report this

What is the reason for this report?

Laravel 4 Error After install composer its says

Posted on August 8, 2014

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.