<div id="App">
@include('page.header', [ 'isAnimalFlag'=> in_array($page, ['animal']) ])
@include('page.header', [ 'isInsectFlag'=> in_array($page, ['insect']) ])
@yield('content')
@include('page.footer')
</div>
Why I can't do this in laravel? Can't have multiple @include? It worked when I use just one include. How to pass multiple param then?
via Alex Yong