From ee9982d9610e6f42da85e73b5b4b4ba5e4a6d6d5 Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Mon, 7 Feb 2022 20:02:23 +0330 Subject: [PATCH] use env instead of config helper inside other config --- .env.example | 1 + app/Ship/Configs/apiato.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index e1c6a5e67..d45ce6f04 100644 --- a/.env.example +++ b/.env.example @@ -35,6 +35,7 @@ SRC_PATH=app ROOT_NAMESPACE=App\ USER_NAMESPACE=App\Containers\AppSection\User\Models\ +ADMIN_ROLE=admin DB_CONNECTION=mysql QUEUE_CONNECTION=sync diff --git a/app/Ship/Configs/apiato.php b/app/Ship/Configs/apiato.php index 32eb92d5e..38bd4849d 100644 --- a/app/Ship/Configs/apiato.php +++ b/app/Ship/Configs/apiato.php @@ -101,7 +101,7 @@ | */ 'allow-roles-to-access-all-routes' => [ - // config('appSection-authorization.admin_role'), + env('ADMIN_ROLE', 'admin'), ], /*