Embed livewire component or blade view inside form

to embed view component

resources\views\livewire\note-list.blade.php

  Forms\Components\Livewire::make('note-list',['type' => 'quotation'])
                                            ->key('foo-first')
                                            ->hidden(fn (?Model $record): bool => $record === null),

to embed livewire component

livewire component

app\Livewire\NoteTable.php

  Forms\Components\Livewire::make(NoteTable::class,['type' => 'quotation'])
                                            ->key('foo-first')
                                            ->hidden(fn (?Model $record): bool => $record === null),

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *