Laravel 5.5 app. Originally 5.3. I installed the filp/whoops
package as per the upgrade guide, but now I want to disable it, as I believe it is causing "out of memory" errors on my Homestead machine whenever I encounter an error, which is really annoying because all I see is "allowed memory size of XXXXXX bytes exhausted" instead of the real error, which is usually a parse error of some sort. I do NOT want to change the memory available to PHP as it matches what I have on my production server.
Is there any simple way to disable this package without removing it?
Try to add into app/Exceptions/Handler.php
the following method:
protected function renderExceptionWithWhoops(Exception $e)
{
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
This will override default implementation and should cause rendering exception without Whoops package.