I need script only on one page. and it should load after jQuery. I tried in index.blade
<script type="text/javascript" src="{{ URL::asset ('js/jquery.js') }}"></script>
@push('custom-scripts')
<script type="text/javascript" src="{{ URL::asset ('js/custom-scripts.js') }}"></script>
@endpush
and then I should use @stack('custom-scripts') in my view?
<script type="text/javascript" src="{{ URL::asset ('js/jquery.js') }}"></script> <script type="text/javascript" src="{{ URL::asset ('js/plugins.js') }}"></script> @push('custom-scripts') <script type="text/javascript" src="{{ URL::asset ('js/custom-scripts.js') }}"></script> @endpush
and then in a child view I wrote@stack('custom-scripts')
– Hardpressed