I'm getting stuck when I launch my laravel 5 project on localhost on Google Chrome. I'm using the bootstrap admin panel from this repo: http://ift.tt/2ha1jfK
I installed al the needs, like npm, bower and gulp. I cleared cache and then I run php artisan serve
When I navigate to localhost:8000 the page loads fine, but the styles.css and the frontend.js will not be loaded.
I'm getting the following error:
GET http://localhost:8000/assets/stylesheets/styles.css net::ERR_INVALID_HTTP_RESPONSE
GET http://localhost:8000/assets/scripts/frontend.js net::ERR_INVALID_HTTP_RESPONSE
GET http://localhost:8000/favicon.ico net::ERR_INVALID_HTTP_RESPONSE
I've tried the following things:
- Cleared cache laravel
- Cleared cache browser
- Disabled chrome extensions
- Going incognito
- Created new files, copied the css and js and put it in the new file
- Searched the whole internet for a solution, which I haven't found..
My Code
<link rel="stylesheet" href="" />
<script src="" type="text/javascript"></script>
But
When I run my project using XAMPP (the url then is: http://localhost/website-monitor/public/) it all works fine.. :/ the only thing is, i'm running the site just to going to the path and not using artisan..
If anyone have the solution, please let me now, i've spilled my whole day on this annoying bug
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire