Problems loading jquery into laravel

0

Good afternoon, I'm not able to load jquery in my laravel, I'm linking the folders correctly:

<script src="{{ asset('js/jquery/jquery-ui.js') }}" defer></script>
<script src="{{ asset('js/jquery/external/jquery/jquery.js') }}" defer></script>

But the pages do not load, does anyone have a tip?

Thank you in advance.

    
asked by anonymous 31.07.2018 / 17:15

1 answer

0

Beauty?

So, are these calls in the site footer?

If you have a specific page, you can use @stack

@push('scripts')
<script type="text/javascript" src="{{ asset('js/jquery/jquery-ui.js') }}"></script>
<script type="text/javascript" src="{{ asset('js/jquery/external/jquery/jquery.js') }}"></script>
@endpush

And in the file that will have the closing of <body> , before you put @stack ('scripts')'

I hope I have helped!

    
31.07.2018 / 18:41