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?
Did you create a new project or did you clone an existing project?
If you cloned an existing project it's very important to run
That way all the dependencies that are missing will be installed.
But if you create a new project you should run this command to make a new project using composer
Just run this inside the directory where you installed your project
In my case I had to enable another extension, namely
php_mbstring.dll
in thephp.ini
file before it could work. It's listed underextension=php_mbstring.dll
. Find it in thephp.ini
file and remove the semi-colon (;
) in front of it and save the file.After this run
install composer
again in the root directory of your Laravel applcication and is should work.Just run the following commands,
Or
I had same problem with laravel and artisan, the solution:
my problem is solved by
if you any other problem you can clear cache and config Clear Route cache:
Clear View cache:
Clear Config cache: