From db263178e40f423919becbfc32a0e348def4c19e Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Mon, 3 Jun 2024 16:24:20 +0330 Subject: [PATCH] fix: wrong config key --- src/Macros/Request/GetRequestedIncludes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Macros/Request/GetRequestedIncludes.php b/src/Macros/Request/GetRequestedIncludes.php index 8fdbc4dc..556657f1 100644 --- a/src/Macros/Request/GetRequestedIncludes.php +++ b/src/Macros/Request/GetRequestedIncludes.php @@ -3,6 +3,7 @@ namespace Apiato\Core\Macros\Request; use Illuminate\Http\Request; +use Illuminate\Support\Facades\Config; use League\Fractal\Manager; class GetRequestedIncludes @@ -11,7 +12,7 @@ public function __invoke(): callable { return function (): array { /** @var Request $this */ - return app(Manager::class)->parseIncludes($this->get(config('apiato.requests.params.fractal.include'), []))->getRequestedIncludes(); + return app(Manager::class)->parseIncludes($this->get(Config::get('apiato.requests.params.include'), []))->getRequestedIncludes(); }; } }