Livewire is a full-stack framework for Laravel that makes building dynamic interfaces simple without leaving the comfort of Laravel.Laravel Data works excellently with Laravel Livewire.
Using Wireable (Traditional)
Use data objects as Livewire component properties:Requirements
- Implement
Wireableon your data class - Use the
WireableDatatrait
Livewire Synths (Experimental)
Livewire Synths allow you to use data objects without making them Wireable. Enable inconfig/data.php:
Lazy Properties
Lazy properties won’t be sent over the wire unless included.You can query lazy nested data objects, but not lazy properties that aren’t data objects.