I’ve read in the documentation that the
@layout tag should be placed on the first line of all views.
But I tried to do something like this:
@loggedIn @layout('blank') @else @layout('master') @endloggedIn @section('content') <div class="container"> Hello, world! </div> @endsection
And I did not succeed.
My question is: is there a way to choose a layout based on a condition?