Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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'),
like image 772
Gauthier Avatar asked Jul 05 '17 09:07

Gauthier


1 Answers

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).

like image 110
lehel Avatar answered Sep 22 '22 03:09

lehel