Maybe this is a newbie question, I'm trying to move a project to laravel 5.
I'm having some mistakes, GET
Failed to load resource: the server responded with a status of 404 (Not Found)
for example on this line in my file:
<script src="{{URL::asset('lib/bootstrap/js/bootstrap.min.js')}}" type="text/javascript"> </script>
the lib directory is inside the public directory, I also tested
<script src="{{URL::asset('public/lib/bootstrap/js/bootstrap.min.js')}}" type="text/javascript"> </script>
but I still get the same error.
Shell:
::/opt/lampp/htdocs/laravel/public:
->ls -la
drwxr-xr-x 5 xxx xxx 4096 feb 5 09:08 lib
.
::/opt/lampp/htdocs/laravel/public/lib/bootstrap/js:
->ls -la
-rwxr-xr-x 1 xxx xxx 68954 nov 24 19:34 bootstrap.js
-rwxr-xr-x 1 xxx xxx 36868 nov 24 19:34 bootstrap.min.js
-rwxr-xr-x 1 xxx xxx 484 nov 24 19:34 npm.js
but if I do in my browser -> http://lar/lib/bootstrap/js/bootstrap.min.js (lar/ is a virtualServer)
I get
/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under the MIT license
*/
..// rest of file
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Pnt8bx
via IFTTT
Aucun commentaire:
Enregistrer un commentaire