auditionadmin/app/Exceptions/Handler.php

25 lines
504 B
PHP

<?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
/**
* @codeCoverageIgnore
*/
//TODO: Fully depricate this class
class Handler extends ExceptionHandler
{
public function render($request, Throwable $e)
{
if ($e instanceof TabulationException) {
dd('here');
return redirect('/tabulation/status')->with('warning', $e->getMessage());
}
return parent::render($request, $e);
}
}