In production, i want to send slack notification and do not want to show whoops page.
//Currently i have added above code.
$whoops = new \Whoops\Run;
$whoops->allowQuit(false);
$whoops->writeToOutput(false);
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
In production, i want to send slack notification and do not want to show whoops page.
//Currently i have added above code. $whoops = new \Whoops\Run; $whoops->allowQuit(false); $whoops->writeToOutput(false); $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler); $whoops->register();
But i want error object. How can i get it?