require('./bootstrap');
require('./ziggy');
window.Vue = require('vue');
const files = require.context('./', true, /\.vue$/i);
files.keys().map(key => {
return Vue.component(_.last(key.split('/')).split('.')[0], files(key))
});
const app = new Vue({
el: '#app',
})
Vue.mixin({
methods: {
route: route
}
});
Upon setting up Laravel 8 authentication, I encountered an error message in the console.
app.js:63273 Uncaught ReferenceError: route is not defined at Module../resources/js/app.js (app.js:63273) at webpack_require (app.js:20) at Object.0 (app.js:63334) at webpack_require (app.js:20) at app.js:84 at app.js:87 app.js:58049
I recommend downloading the Vue Devtools extension for a more streamlined development process. As a result of this issue, my JavaScript functionality is being affected. It seems that I need to access the URL for an authentication module.