F
Filament2w ago
Abi

How to pass current record when using `Infolists\Components\Livewire`

When using the class Infolists\Components\Livewire::make(), how do I pass the current record to the Livewire component?
1 Reply
Ananferis
Ananferis2w ago
use Infolists\Components\Livewire; $record = YourModel::find(1);
echo Livewire::make('current-record-component', ['record' => $record]);

Did you find this page helpful?