Adding javascript functions to Laravel Mix ( and why you get error Uncaught ReferenceError: function is not defined )
This one had me pulling my hair out the other day. I was using Laravel, adding a javascript function to the app.js file ( also tried using require in app.js and pulling in my function ). Laravel uses Laravel Mix which is a wrapper for webpack. Yet with either approach I was getting the javascript … Read more