I don’t think so, here’s how I do it:
resources/views/index.blade.php
...
{!! $title !!}
@while(have_posts()) @php(the_post())
@includeFirst(['partials.content-' . get_post_type(), 'partials.content'])
@endwhile
...
resources/views/partials/content.blade.php
...
<header>
<h2 class="entry-title">
{!! $title !!}
</h2>
</header>
...
app/View/Composers/Index.php
...
public function title() {
return get_the_title();
}
...
app/View/Composers/Content.php
...
public function title() {
return get_the_title();
}
...
This is an extremely rudimentary example, and there are better ways of doing the title specifically, but this would get the correct title in each case, so it acts like a Sage 9 static controller function.