I'm new on Laravel and Blade. I've two different contents, one for Home, and second for any view, excluding home.
I've this code but nothing happens:
@if(view('home')) // Display content if is home, display 'foo'
    @include('partials/foo')
@else
    @include('partials/bar') // Okay, not in home, display 'bar'
@endif;
Is this the correct way?
 
     
    