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

后端 未结 5 1214
执念已碎
执念已碎 2021-02-07 13:37

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.

5条回答
  •  [愿得一人]
    2021-02-07 14:15

    I tried to everything to find out the issue like enabling error reporting to report all like :

    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);
    

    Also i tried to add my custom error handler as well but nothing worked for me. So finally i found the actual issue in php error log file in apache error logs folder (Applications/MAMP/logs as am using Mac).

提交回复
热议问题