Vue.js and a app global variable

Working on a project with Intellij and Vue.js. It uses Ziggy to pull the Laravel routes into the front end, and has the Ziggy function route() defined as an app scoped global variable. In the templates Intellij doesn't know route() is global and of course is putting the yellow squiggly line under and asking to import the function. Is there a ‘right’ way to indicate it's a global variable, or is importing an unnecessary package the only way?

0

Please sign in to leave a comment.