Good Evening.... I am getting error for CSS and JS file and showing in console.
Few are as below - Getting this error for 1 page only and for other pages all CSS and JS files are working fine.
While checking the error, i point out the url of 8000/mypagename/....plugin/ is that ok or did i done something wroung. ?
GET http://127.0.0.1:8000/viewBuffalo/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css
net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1:8000/viewBuffalo/plugins/datatablesbuttons/css/buttons.bootstrap4.min.css
net::ERR_ABORTED 404 (Not Found)
I tried to check the file location but they are ok and as mentioned other pages are working fine... Thanks in Advance...
CodePudding user response:
As per your Your explanation If you have added your css and js inside head tag, you should use asset() provided by laravel like below example.
<link rel="stylesheet" href="{{ asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css') }}">
I consider your plugins folder is inside of public folder.
