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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community