Janaka Bandara
Janaka Bandara

Reputation: 72

Cannot serve Cloned Git repository in my local machine

One of my friends have created a laravel app and he has made a repository in GitHub. But once I cloned it and run php artisan serve command it displays the following error.

 **Warning: require(C:\Users\j\Desktop\newsLankaPhp2-2\newsLankaPhp2-2\bootstrap/..
 /vendor/autoload.php): failed to open stream: No such file or directory in   C:\Us
   ers\j\Desktop\newsLankaPhp2-2\newsLankaPhp2-2\bootstrap\autoload.php on line 17**

  **Fatal error: require(): Failed opening required 'C:\Users\j\Desktop\newsLankaPhp
 2-2\newsLankaPhp2-2\bootstrap/../vendor/autoload.php' (include_path='.; C:\xampp\
   php\PEAR') in
   C:\Users\j\Desktop\newsLankaPhp2-2\newsLankaPhp2-2\bootstrap\autoload.php on line 17**

I am new to laravel and I need some help regarding this.

Upvotes: 1

Views: 540

Answers (1)

Jordan Plamondon
Jordan Plamondon

Reputation: 345

Usually when you clone a Laravel Repository, you have to make this Step:
- Composer install
- Copy .env.example to .env and set the good values inside .env

Upvotes: 2

Related Questions