So we will learn how to fix Laravel 5 Failed opening required bootstrap/../vendor/autoload.php.
When we install the Laravel 5.2 package by using the command composer install. It will cause the required bootstrap/../vendor/autoload.php in the command prompt or terminal of PhpStorm. So I'm gonna show you how to install the Laravel 5.2 success and also how to fix the bug.
Guideline:
1. Open terminal and browse to the localhost directory, I used xamp so my directory is "htdocs", if you used wamp it might "www" like that.
2. Then you type "composer create-project laravel/laravel your-project-name 5.2" and press enter
3.After you wait you will error like below:
4. The error caused by Laravel 5.2 pull some fil, not at all, even you run the localhost, you will get the same error. To fix it you type "composer install --no-scripts" don't forget "s", because when I fixed I always forget it. but you have to browse to your root project in htdocs like "login", so you type "cd login" then you type "composer install --no-scripts" -> done. (you wait because it is downloading some file)
5. So you can go to your browser and type the url "http://localhost:1010/mylaravel/public/" or virtual host is dependent on you. You will see the page Laravel 5 with error autload.php.
When we install the Laravel 5.2 package by using the command composer install. It will cause the required bootstrap/../vendor/autoload.php in the command prompt or terminal of PhpStorm. So I'm gonna show you how to install the Laravel 5.2 success and also how to fix the bug.
Guideline:
1. Open terminal and browse to the localhost directory, I used xamp so my directory is "htdocs", if you used wamp it might "www" like that.
2. Then you type "composer create-project laravel/laravel your-project-name 5.2" and press enter
3.After you wait you will error like below:
4. The error caused by Laravel 5.2 pull some fil, not at all, even you run the localhost, you will get the same error. To fix it you type "composer install --no-scripts" don't forget "s", because when I fixed I always forget it. but you have to browse to your root project in htdocs like "login", so you type "cd login" then you type "composer install --no-scripts" -> done. (you wait because it is downloading some file)
5. So you can go to your browser and type the url "http://localhost:1010/mylaravel/public/" or virtual host is dependent on you. You will see the page Laravel 5 with error autload.php.
APTRON Solutions institute in Delhi train a great many students around the world every year for the PHP training at an affordable price which is customized as per each candidate's requirement of modules and content.
ReplyDeleteFor More Info: PHP Institute in Delhi