500 server error Laravel project after clone

When you are cloning a Laravel project from GitHub, you have to :

  1. Run composer install on your cmd or terminal
  2. Copy .env.example file to .env on the root folder
  3. 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
  4. Run php artisan key:generate
  5. Run php artisan migrate
  6. Run php artisan serve
  7. Go to http://localhost:8000/
  8. Default server running on http://127.0.0.1:8000/