mercredi 29 juin 2016

Laravel - blade append section

i need to run a js script in a subview, so i have a section with all my scripts and in the subview i try to append my script to the existing scripts.

HTML PAGE:

<html><head></head><body></body>@yield('scripts')</html>

SECTION:

@section('scripts') <!-- my standard scripts --> @stop

SUBVIEW:

@section('scripts') <!-- my new script --> @append

i already try with @parent inside subview @section('scripts') but doesn't work.

thank's



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire