Friday, April 14, 2017

How Load asset only once laravel 5.3?

How Load asset only once. if i open dashboard, all asset will be load and then i open other page, not load asset second time..

how to make load asset only once in blade template?

ex:

template.blade.php

@yield('css') 
@yield('js')

dashboard.blade.php

@section('css')
//some code here
@endsection

group.blade.php

@section('css')
//some code here
@endsection

any help me? thanks



via muzamil indra

Advertisement