20 lines
476 B
PHP
20 lines
476 B
PHP
<?php
|
|
namespace App\Exceptions;
|
|
|
|
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
|
use Throwable;
|
|
use App\Exceptions\TabulationException;
|
|
|
|
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);
|
|
}
|
|
}
|