cloning laravel project from github

Yes you can, but that is not recommended at all.

You can delete everything in .gitignore file and push them from a working project. Then it will work perfectly where you git clone them.

But there are so many drawbacks in this way. I recommend you not to do that.


1.Run `git clone 'link projer github'

2.Run composer install

3.Run cp .env.example .env or copy .env.example .env

4.Run php artisan key:generate

5.Run php artisan migrate

6.Run php artisan db:seed

7.Run php artisan serve

8.Go to link localhost:8000 OR 127.0.0.1:8000


  • Clone your project
  • Go to the folder application using cd command on your cmd or terminal
  • Run composer install on your cmd or terminal
  • Copy .env.example file to .env on the root folder. You can type copy .env.example .env if using command prompt Windows or cp .env.example .env if using terminal, Ubuntu
  • Open your .env file and change the database name (DB_DATABASE) to whatever you have, username (DB_USERNAME) and password (DB_PASSWORD) field correspond to your configuration.
  • Run php artisan key:generate
  • Run php artisan migrate
  • Run php artisan serve
  • Go to http://localhost:8000/