@jadsondantas Stupid question... are you referencing your JS file in a blade template?
Doubtful when using laravel mix
Hello, I have a problem using the laravel mix. I'll try to explain.
I import my js. / * IMPORT
- /
` require ('./ general'); require ('./ plugins / table-plugin.js') require ('./ treads / forms') `
it generates app.jss, with all functions insideapp.jss. So far so normal. But when I try to make any function call, he can't find the function. By accessing the network and opening app.js, the functions are there! Interestingly, if I add the function code to the console, it will work normally. Has anyone ever experienced this? Am I doing something wrong?
`` ` function getDadosForm (class) { var form = []; $ (class + 'input'). each (function (key, value) { form.push ({ input: this.id, value: this.value }); }); data = {};
for (i = 0; i <form.length; i ++) { data [form [i] .input] = form [i]. value; }
return data; } `` `
Please or to participate in this conversation.