Modelo de set de LiveWire con JavaScript
@this.set('key', 'value');
Hosam Aldeen
@this.set('key', 'value');
<script>
let posts = @js($posts)
// "posts" will now be a JavaScript array of post data from PHP.
</script>