Skip to content

Instantly share code, notes, and snippets.

Avatar
💣
Chaos

Aubrey Cottle Kirtaner

💣
Chaos
View GitHub Profile
@jacurtis
jacurtis / App\Exceptions\Handler.php
Created Jul 28, 2016
How to get filp/whoops to work in Laravel 5.2 or 5.3 - Add this code to your `App\Exceptions\Handler.php` file.
View App\Exceptions\Handler.php
/**
* Create a Symfony response for the given exception.
*
* @param \Exception $e
* @return mixed
*/
protected function convertExceptionToResponse(Exception $e)
{
if (config('app.debug')) {
$whoops = new \Whoops\Run;