Upgraded to laravel exceptions 2
This commit is contained in:
53
config/exceptions.php
Normal file
53
config/exceptions.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Cachet.
|
||||
*
|
||||
* (c) Cachet HQ <support@cachethq.io>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Exception Displayers
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here are each of the exception displayers setup for your application.
|
||||
|
|
||||
| These displayers are sorted by priority. Note that when we are in debug
|
||||
| mode, we will select the first valid displayer from the list, and when we
|
||||
| are not in debug mode, we'll filter out all verbose displayers, then
|
||||
| select the first valid displayer from the new list.
|
||||
|
|
||||
*/
|
||||
|
||||
'displayers' => [
|
||||
'GrahamCampbell\Exceptions\Displayers\DebugDisplayer',
|
||||
'GrahamCampbell\Exceptions\Displayers\HtmlDisplayer',
|
||||
'GrahamCampbell\Exceptions\Displayers\JsonDisplayer',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Displayer Filters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here are each of the filters for the displayers.
|
||||
|
|
||||
| This allows you to apply filters to your displayers in order to work out
|
||||
| which displayer to use for each exception. This includes things like
|
||||
| content type negotiation.
|
||||
|
|
||||
*/
|
||||
|
||||
'filters' => [
|
||||
'GrahamCampbell\Exceptions\Filters\VerboseFilter',
|
||||
'GrahamCampbell\Exceptions\Filters\CanDisplayFilter',
|
||||
'GrahamCampbell\Exceptions\Filters\ContentTypeFilter',
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user