Every time I access my localhost Laravel project for the first time, it loads fine. However, when I refresh the page, I start receiving 404 errors for CSS, JS, and other files, causing the layout of the webpage to change. Essentially, Bootstrap JS files are not able to load properly. I have attempted to enable CSS map and JS map in the Chromium settings, but I am still encountering these 404 errors. Any help on this matter would be greatly appreciated. Thank you, StackOverflow.
https://i.sstatic.net/ZDqmX.png
Note: The commands ** npm run dev ** && ** npm run dev ** have already been executed, but the error persists.
EDITED
Upon successfully loading my page, an image appears as shown below.
https://i.sstatic.net/6GcVM.png
However, upon refreshing the page OR pressing F5, two CSS files go missing and result in 404 errors. Please refer to the error page below.