Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5 Failed opening required bootstrap/../vendor/autoload.php

Tags:

php

laravel-5

I have recently installed Laravel 5 via composer. I tried creating a new controller using artisan and I get the following error:

bootstrap/../vendor/autoload.php. Failed to open stream: No such file or directory. The "vendor" folder does not exist.

Am I missing something?

like image 436
Scott Avatar asked Feb 12 '15 03:02

Scott


2 Answers

Run composer with --no-scripts

composer update --no-scripts   

This shall fix the issue. I tried this on Mac and Linux.

like image 200
Shubhamoy Avatar answered Sep 16 '22 17:09

Shubhamoy


Which OS you are using ? For Windows : Go to Command Prompt

set path to www/{ur project}

For me : www/laravel5

Then type this command : composer install

It will automatically install all dependency in vendor/

like image 45
MONTS_MIND_Hacker Avatar answered Sep 16 '22 17:09

MONTS_MIND_Hacker