Filament table in Modal - livewire component
Hi, this is what I'm looking to do:
I've created a livewire component to display the table in the modal and a view that includes the component too.
I'm not sure if I'm missing a step or if I've added too much. I'm currently receiving the error:
Any thoughts would be greatly appreciated.
- An edit page as part of a resource - lets call that
Foo - On that edit page, have an action in the header to select a
Bar - When clicking that action, open a modal which has a table on it (and potentially a form at the top in future)
I've created a livewire component to display the table in the modal and a view that includes the component too.
EditFoo.phpSelectBarModal.phpselect-bar-modal.blade.php
<x-filament::modal id="selectBarModal" width="lg" wire:model.defer="showingSelectBarModal">
<form wire:submit.prevent="selectBar">
@livewire('select-bar-modal')
<x-slot name="header">
<x-filament::input type="search" wire:model="search" placeholder="Search bars..." />
</x-slot>
</form>
</x-filament::modal>
I'm not sure if I'm missing a step or if I've added too much. I'm currently receiving the error:
Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '1024' frame which points to Bar::query in the component class. Any thoughts would be greatly appreciated.