Jquery in laravel, it does not work

0

I'm trying to link Jquery to my laravel, I'm just learning now and I have this code trzoo for an easy index:

<meta charset="UTF-8">
<title>@yield('title', 'Default')  |Panel de Administración</title>
<link rel="stylesheet" href="{{ asset('plugins/bootstrap/css/bootstrap.css') }}">

@include('admin.template.partials.nav')

<section>
    @yield('content')
</section>

<script src="{{ asset('plugins/bootstrap/js/bootstrap.js') }}"></script>
<script src="{{ asset('plugins/jquery/js/jquery-3.2.1.js') }}"></script>

And the path of my file is this:

plugins/jquery/js/jquery-3.2.1.js

That is just the one that puts in the, the path of CSS works perfectly but this of Jquery no.

The folder public % of the%

are inside the folder     
asked by Alberto Cepero de Andrés 22.08.2017 в 13:29
source

1 answer

3

There is an error in the order of the scripts, the order has to be

<script src="{{ asset('plugins/jquery/js/jquery-3.2.1.js') }}"></script>
<script src="{{ asset('plugins/bootstrap/js/bootstrap.js') }}"></script>
    
answered by 22.08.2017 в 13:42