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

Question description 

I have recently installed Laravel 5.4 via composer. then after trying to run the project. I am getting the following issue.

If you are simply hitting url you are getting following think as the issue

Warning: require(C:\xampp\htdocs\laravelecommerce\golmarket\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\laravelecommerce\golmarket\bootstrap\autoload.php on line 17

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\laravelecommerce\golmarket\bootstrap/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\laravelecommerce\golmarket\bootstrap\autoload.php on line 17

If you are going through Artisan Console then following this showed up.


Laravel 5.4 Failed opening required bootstrap
Laravel 5 Failed opening required bootstrap
Following is the solution

Answer:
I encountered the same problem. It occurred because the composer was not able to install the dependencies specified in a composer.json file. try running
composer install 
If this does not solve the problem, make sure the following PHP modules are installed php-mbstring PHP-dom
To install this extension run the following in terminal
sudo apt-get install php-mbstring php-dom
once the installation is complete
try running the command in your project root folder
composer install 

Comments

Popular posts from this blog

How can I debug PHP cURL sessions?

Free icons

Where is the security section of google analytics? “Security Issues” section.