Be sure to Be aware that your scripts are going to be operate just once on the 1st render with the ingredient. If you might want to operate a JavaScript purpose later on - emit the occasion in the ingredient and hear it in JavaScript as described here) https://laravel-livewire.com/docs/2.x/inline-scripts