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(); }; } }