vendredi 25 mai 2018

Laravel Blade: @stop VS @show VS @endsection VS @apply

In Laravel, there are different ways of using sections:

@yield('section1') // Filled in by child view

@section('section2')
    // Default content, can be overwritten by child
    // Different ways of closing the section
@endsection|stop|show|apply

Who can tell me what the exact difference is between all of these?

Accoding to this, @stop and @endsection might be the same. (with one having been deprecated, but not anymore)



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LsJRQI
via IFTTT

Aucun commentaire:

Enregistrer un commentaire