Is it possible to switch to a different view, but then by default with an include clause?
Example:
@yield('header', @include('partials.header'))
The supposed action is that if the subview does not include a title, then the current template will include the partials.header view.
Geoff source
share