You should Take note that the scripts will likely be operate only once on the primary render from the ingredient. If you should operate a JavaScript perform afterwards - emit the occasion within the ingredient and hear it in JavaScript as explained right here) https://laravel-livewire.com/docs/2.x/inline-scripts