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?
Following this below step solved my problem. You may try
Just setup a new project using
composer
instead oflaravel
like this:I got this when I did composer update instead of composer install.
go to your project folder via cmd. run the following command
it will install missing vendor folder and files in your project.
but in some cases it gives error like " Your configuration does not allow connection to bla bla bla.." in cmd.
for that go to your composer.json file,
change
"secure-http": true
to"secure-http": false
but in some cases (as was in my case) you may not find such line in your file. for that do the following action:
change
"config": { "preferred-install": "dist" }
to
and run again
composer update
command.hope this will solve problem of many persons. :)
Run composer with --no-scripts
This shall fix the issue. I tried this on Mac and Linux.
Run
composer install
in your root project folder (orphp composer.phar install
).