Skip to content

Commit

Permalink
fix: wrong config key
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Jun 3, 2024
1 parent d9377e9 commit db26317
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Macros/Request/GetRequestedIncludes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Apiato\Core\Macros\Request;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Config;
use League\Fractal\Manager;

class GetRequestedIncludes
Expand All @@ -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();
};
}
}

0 comments on commit db26317

Please sign in to comment.