From f75f3911a4a42eba64f14b398242152d4dea9e2e Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sat, 10 Sep 2016 15:01:23 +0100 Subject: [PATCH] No more need for Whoop rendering code --- app/Exceptions/Handler.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index b7f83f0b..6c1ce7f8 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -68,28 +68,4 @@ class Handler extends ExceptionHandler return redirect()->guest('login'); } - - /** - * Render an exception using Whoops. - * - * @param \Exception $exc - * @return \Illuminate\Http\Response - */ - protected function renderExceptionWithWhoops(Exception $exception) - { - $whoops = new \Whoops\Run; - $handler = new \Whoops\Handler\PrettyPageHandler(); - $handler->setEditor(function ($file, $line) { - return "atom://open?file=$file&line=$line"; - }); - $whoops->pushHandler($handler); - - $flattened = FlattenException::create($exception); - - return new \Illuminate\Http\Response( - $whoops->handleException($exc), - $flattened->getStatusCode(), - $flattened->getHeaders() - ); - } }