Home » Javascript » How to use laravel mix define global javascript function

How to use laravel mix define global javascript function

Posted by: admin August 19, 2018 Leave a comment

Questions:

I already have a function in resources/assets/js/common/utils.js

'use strict'

function test(){
   console.log('test');
}

How can I define utils.js as a global file and to be use any where?
Thanks for read my question!

Answers: