I have build a component that works with Alpine.js to fix the selected attribute issue when using select element with Livewire.
My Laravel Livewire Select Component is a custom component designed to enhance the functionality of HTML elements when used with Laravel Livewire. This component seamlessly integrates with Livewire to manage the default selected state of options, ensuring compatibility with Livewire's reactivity. It allows for programmatic default option selection and optimizes performance through an optional JavaScript loading feature.
You can fine the component an instruction on how to use it here:
https://github.com/samuelaustinudhedhe/Laravel-Livewire-Select-Component
Let me know if you need further assistance