Ad

How To Fix 500 Response In A Laravel Project

I cloned project https://github.com/SagarMaheshwary/laravel-react-beginners.git and ran composer installphp artisan serve But localhost:8000 shows 500 Server Error and I can not see any error logs in the artisan console. How can I fix this problem?

I am using MacOS.

Ad

Answer

  1. Clone the github repo:
git clone https://github.com/SagarMaheshwary/laravel-react-beginners.git
  1. Go the project directory:
cd laravel-react-beginners
  1. Install the project dependencies:
composer install
  1. Copy the .env.example to .env or simly rename it:

If linux:

cp .env.example .env

If windows:

copy .env.example .env
  1. Create the application key:
php artisan key:generate
  1. Start the laravel server:
php artisan serve
Ad
source: stackoverflow.com
Ad