Skip to content

Commit

Permalink
Explicitly use the request in the cascade (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Aug 10, 2022
1 parent 90cd590 commit d426056
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ protected function createContentFiles()
$request = tap(Request::capture(), function ($request) {
$request->setConfig($this->config);
$this->app->instance('request', $request);
Cascade::withRequest($request);
});

$pages = $this->gatherContent();
Expand Down

0 comments on commit d426056

Please sign in to comment.