2

I'm new to Laravel and git. I created a new project added a Template following a video (it worked), commited my changes and push it to gitlab. Then in my work I cloned my project to my pc, then i told i need to run a command called composer install require(vendor/autoload.php): failed to open stream.

After that when I tried to run the project it gave me a 500 Server Error, when it's clear it's still working in my home pc.

Mlayel Rami
  • 63
  • 1
  • 7

1 Answers1

14

You will also need to provide the .env file which also contains the database credentials. By default you have a .env.example file. Copy it to .env add your databse credentials and run

php artisan key:generate

then you should be fine

Davit Zeynalyan
  • 8,418
  • 5
  • 30
  • 55
Frnak
  • 6,601
  • 5
  • 34
  • 67