We can use a section to define some HTML and then yield that somewhere else.
section
yield
So why do we have stacks? https://laravel.com/docs/5.2/blade#sta
Stack is someway appropriate for scripts , with stack you can Append as much as you need .
@push('scripts') @endpush
Append …
@stack('scripts')
As you can see the scripts stack will be appended under the script tag of example.js . So you can push special scripts for each view .