diff --git a/config/naive-crud.php b/config/naive-crud.php index 5b474a9..fbc642c 100644 --- a/config/naive-crud.php +++ b/config/naive-crud.php @@ -10,6 +10,4 @@ 'image_height' => env('NC_IMAGE_MAX_HEIGHT'), 'image_thumbnail' => env('NC_IMAGE_THUMBNAIL', false), 'image_thumbnail_width' => env('NC_IMAGE_THUMBNAIL_WIDTH', 200), - 'auth_guard' => env('NC_AUTH_GUARD'), - 'auth_admin_guard' => env('NC_AUTH_ADMIN_GUARD'), ]; diff --git a/src/Traits/Crud/AuthorizeTrait.php b/src/Traits/Crud/AuthorizeTrait.php index 9e15c27..bb6f7a9 100644 --- a/src/Traits/Crud/AuthorizeTrait.php +++ b/src/Traits/Crud/AuthorizeTrait.php @@ -116,7 +116,7 @@ public function getExportAbility(): array|string public function resolveUser(): ?User { - $this->user ??= auth()->guard($this->guard /*?? config('naive-crud.auth_guard')*/)->user(); + $this->user ??= auth()->guard($this->guard)->user(); return $this->user; }