mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Moved NotifyException render work from handler to exception
As continued from last commit.
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Contracts\Support\Responsable;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class PrettyException extends Exception implements Responsable
|
||||
{
|
||||
@ -18,7 +17,7 @@ class PrettyException extends Exception implements Responsable
|
||||
|
||||
/**
|
||||
* Render a response for when this exception occurs.
|
||||
* @param Request $request
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function toResponse($request)
|
||||
{
|
||||
|
Reference in New Issue
Block a user