jeudi 19 mai 2016

Can we extends different layout in subview?

I had the following codes.

@if(isset($is_gift_card_site) && $is_gift_card_site)
    @extends('gift_card.layout.index')
@else
    @extends('layout.index2')
@endif

@section('content')
    //html
@stop

It works. But it will extend both layouts (duplicated). Any solution for this problem. Thanks a lot.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Tr4egQ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire