1
votes

I downloaded a project from github but when I try to start with artisan like this:

php artisan serve

I get errors :

PHP Warning: require(C:\xampp\htdocs\larticles_api/vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\larticles_api\arti san on line 18

Warning: require(C:\xampp\htdocs\larticles_api/vendor/autoload.php): failed to o pen stream: No such file or directory in C:\xampp\htdocs\larticles_api\artisan o n line 18 PHP Fatal error: require(): Failed opening required 'C:\xampp\htdocs\larticles_ api/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\l articles_api\artisan on line 18

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\larticles_api/v endor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\lartic les_api\artisan on line 18

2
composer installmatiit

2 Answers

4
votes

1- execute composer install

2- rename .env.example to .env and updated it with your database credentials

3- php artisan key:generate

4- php artisan serve

2
votes

run composer install, them php artisan serve