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?
If you are a Windows user you may uninstall Composer. Then install Composer. After that you install Laravel. Maybe it will work.
it may be an issue with installation run following command. It worked for me
I added
composer.lock
file to .gitignore, after commit that file to repository error is gone :)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/
After checking
php
version and a lot of research , the problem was onComposer
side so just run the following commandcomposer install --ignore-platform-reqs
I also had that error. But none of the above solved the issue. So i uninstalled and again installed the composer. Then i did
composer update
. and the problem was fixed.