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?
I encountered the same problem. It occurred because composer was not able to install the dependencies specified in composer.json file. try running
If this does not solve the problem, make sure the following php modules are installed php-mbstring php-dom
To install this extensions run the following in terminal
once the installation is complete
try running the command in your project root folder
Before you carry out the following instructions you need to make sure you have composer installed globally on your machine; Open you Mac terminal and run the following command:
once composer is installed globally run the following command after you are in the directory of the project:
once completed in it update and install all the required packages.
When the new project created the laravel require to load vendors to autoload the libraries , We use composer update to
Composer is a dependency manager allows you to delegate responsibility for managing your dependencies to a third party.
This solution worked for me.The reason is not have vendor folder in your application.follow these steps.
1)if your project have composer.json file..delete it
2)then run
that command add vendor folder to your project
Turns out I didn't enable openssl in my php.ini so when I created my new project with composer it was installed from source. I changed that and ran
now the vendor folder was created.
You need to regenerate
autoload.php
file. you can usedump-autoload
to do that without having to go through an install or update.use
to generate
autoload.php
file again in/vendor
directory.