How to debug Laravel error 500 with no logs, no information

I’m working on an existing Laravel application in order to develop new feature but after installing the app on my computer, I have an error 500 and no clue to resolve it.

In my app.php file I have set :

'env' => env('APP_ENV', 'local'),
'debug' => env('APP_DEBUG', true),

But still I have no information, no logs are generated in storage/logs . I have no idea of what could be the problem.

The previous developer was on windows and I’m working on Linux but I’m not sure this is revelant.

EDIT:

I also have those variable in my config/app.php

'log' => env('APP_LOG', 'daily'),
'log_level' => env('APP_LOG_LEVEL', 'debug'),

Answer

Next to looking into your .env file, make sure permissions are correctly set (and good practice to create the storage/logs folder(s) manually – at least on windows that causes problems).

Leave a Reply

Your email address will not be published. Required fields are marked *