Skip to content

Commit

Permalink
get config value from env
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Feb 7, 2022
1 parent 2bb78eb commit 1fcd9ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
|
*/

'admin_role' => 'admin',
'admin_role' => env('ADMIN_ROLE', 'admin'),
];
4 changes: 2 additions & 2 deletions app/Ship/Exceptions/Handlers/ExceptionsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Ship\Exceptions\Handlers;

use Apiato\Core\Abstracts\Exceptions\Exception as CoreException;
use Apiato\Core\Exceptions\Handlers\ExceptionsHandler as CoreExceptionsHandler;
use App\Ship\Parents\Exceptions\Exception as ParentException;
use Throwable;

/**
Expand Down Expand Up @@ -43,7 +43,7 @@ public function register(): void
$this->reportable(static function (Throwable $e) {
});

$this->renderable(function (ParentException $e) {
$this->renderable(function (CoreException $e) {
if (config('app.debug')) {
$response = [
'message' => $e->getMessage(),
Expand Down

0 comments on commit 1fcd9ab

Please sign in to comment.