Skip to content

Commit

Permalink
StartPush on view composer (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Jan 23, 2025
1 parent 0c3e3aa commit fc6bf22
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/RapidezStatamicServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,7 @@ public function bootSitemaps(): static

public function bootStack() : static
{
if (! $this->app->runningInConsole()) {
View::startPush('head', view('statamic-glide-directive::partials.head'));
}
View::composer('rapidez::layouts.app', fn($view) => $view->getFactory()->startPush('head', view('statamic-glide-directive::partials.head')));

return $this;
}
Expand Down

0 comments on commit fc6bf22

Please sign in to comment.