From 1fcd9abcb5768237136a6f6af4d6f9665eb2ca1f Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Mon, 7 Feb 2022 20:03:26 +0330 Subject: [PATCH] get config value from env --- .../Authorization/Configs/appSection-authorization.php | 2 +- app/Ship/Exceptions/Handlers/ExceptionsHandler.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Containers/AppSection/Authorization/Configs/appSection-authorization.php b/app/Containers/AppSection/Authorization/Configs/appSection-authorization.php index 6ee73d002..432d64d62 100644 --- a/app/Containers/AppSection/Authorization/Configs/appSection-authorization.php +++ b/app/Containers/AppSection/Authorization/Configs/appSection-authorization.php @@ -20,5 +20,5 @@ | */ - 'admin_role' => 'admin', + 'admin_role' => env('ADMIN_ROLE', 'admin'), ]; diff --git a/app/Ship/Exceptions/Handlers/ExceptionsHandler.php b/app/Ship/Exceptions/Handlers/ExceptionsHandler.php index 4805be4a7..7ad18cff6 100644 --- a/app/Ship/Exceptions/Handlers/ExceptionsHandler.php +++ b/app/Ship/Exceptions/Handlers/ExceptionsHandler.php @@ -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; /** @@ -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(),