Support the ongoing development of Laravel.io →
Views Blade
Last updated 1 year ago.
0

You could add a scripts section. At the end of your layout.blade.php file, add this:

<script src="{{ asset('/js/jquery.min.js') }}"></script>
<script src="{{ asset('/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('/js/respond.min.js') }}"></script>
@yield('scripts')

Then, in your home.blade.php, you add your scripts...

@section('scripts')
<script src="{{ asset('/js/datatables.min.js') }}"></script>
<script src="{{ asset('/js/bootstrap-table-all.min.js') }}"></script>
<script> $(function(){ // body... // $('#example').dataTable(); alert(); });</script>
@stop
Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.