Moved page-scripts to render after main scripts

This commit is contained in:
Deon George 2018-05-24 12:28:30 +10:00
parent 1bfd5609a5
commit 8bafc735c4
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254
2 changed files with 4 additions and 2 deletions

View File

@ -36,6 +36,9 @@
@include('adminlte::layouts.partials.scripts')
{{-- Scripts --}}
{!! Asset::scripts() !!}
@yield('page-scripts')
@show
</body>
</html>

View File

@ -2,9 +2,8 @@
<!-- JQuery and bootstrap are required by Laravel 5.3 in resources/assets/js/bootstrap.js-->
<!-- Laravel App -->
<script src="{{ url (mix('/js/app.js')) }}" type="text/javascript"></script>
<script src="{{ url(mix('/js/app.js')) }}" type="text/javascript"></script>
@yield('page-scripts')
<!-- Optionally, you can add Slimscroll and FastClick plugins.
Both of these plugins are recommended to enhance the
user experience. Slimscroll is required when using the