I have these code
function loadXMLDoc() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("app").innerHTML =
this.responseText;
}
};
xhttp.open("GET", "../resources/views/livewire/overview.blade.php", true);
xhttp.send();
}
setInterval(function () {
loadXMLDoc();
}, 1000);
window.onload = loadXMLDoc;
I'm trying to read overview.blade.php here xhttp.open("GET", "../resources/views/livewire/overview.blade.php", true); but I keep getting 404 not found, so my question is how to read a file outside the public folder.