Defining global variables and inlining scripts are not good practices, but Blade and alpine.js both seem to encourage doing that.
If your app isn't too big, maybe you can put everything in app.js (in, imported from, indirectly imported from, whatever as long as it's in the build system's output app.js file).