abu abu
abu abu

Reputation: 7022

500 error in Laravel but log folder is empty

I am working in a Client's Laravel project which version is 5.7.28. But I am not getting anything in storage/logs/ folder. I copied the .env.example to .env. I run composer install and php artisan key:generate. Some of my .env files configuration is like below

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:8ovbzfpWGsGTDyDIRWDO8VKObeXGyWqnMVw5KjTVJTc=
APP_DEBUG=true
APP_URL=http://127.0.0.1:8000
BASE_URL=http://127.0.0.1:8000

I set permission 777 for all folders.

But I am getting 500 error. How can I solve the error.

Upvotes: 2

Views: 577

Answers (2)

Md. Juyel Rana
Md. Juyel Rana

Reputation: 544

Run php artisan optimize Before production

Upvotes: 0

Khaled Alam
Khaled Alam

Reputation: 905

try change to prod mode: APP_ENV=production then back to dev mode

don't forget to run: php artisan config:clear -> php artisan env

Upvotes: 1

Related Questions