Jquery does not work in laravel 5.3

0

I have a problem with my Jquery in laravel, I have it in the Public folder and I have it with the following code in my main Template as follows:

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

In the console of artisan the following error tells me when I click my dropdowns and when I put inputs type date and things so they require the Jquery: Invalid Request EOF.

    
asked by Ricardo Torres 29.12.2016 в 16:18
source

1 answer

0

CTRL + SHIFT + J in Chrome check if you do not throw a 404 error because it should not only be in public but also in the folder JS ... additionally Laravel can not "know" that JQuery has errors, or if it is not "well placed", I mean, basically your load line where you call JQuery Laravel just creates a path to that file, prints it and finished, the other work to be part of the "front end" is left to the browser who must interpret and load the necessary static files.

First edition: Command that could be auxiliary:

php artisan clear-compiled && php artisan view:clear && php artisan route:clear && php artisan config:clear && php artisan config:cache && php artisan cache:clear && php artisan optimize
    
answered by 29.12.2016 / 16:29
source