Reputation: 1
I am using below command to create controller.
$ php artisan make:controller PagesController
After executing command getting below error.
PHP Warning: require(C:\xampp\htdocs\WebDevApp\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\WebDevApp\bootstrap\autoload.php on line 17
Warning: require(C:\xampp\htdocs\WebDevApp\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\WebDevApp\bootstrap\autoload.php on line 17 PHP Fatal error: require(): Failed opening required 'C:\xampp\htdocs\WebDevApp\bootstrap/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\WebDevApp\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\WebDevApp\bootstrap/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\WebDevApp\bootstrap\autoload.php on line 17
Upvotes: 0
Views: 1475
Reputation: 135
Just run this inside the directory where you installed your project:
composer install
after
php artisan make:controller PagesController
Upvotes: 1
Reputation: 4040
composer update --no-scripts
run this command after that add a env file to your folder
Upvotes: 0