Component form and list on livewire update list when saving data
I have a question with Livewire, could anyone indicate any material on how to do this? Or someone can give a help
Why am I getting 401 errors on Livewire uploads
When I try to upload a file on the production server the upload goes to 100% and then says error uploading. If I check the browser console it shows the upload failed because of a 401 error.
Livewire encountered corrupt data when trying to hydrate a component Filament Relation Manger
Select::make(‘fees_description’) ->label(‘الرسوم’) ->preload() ->multiple() ->live() ->options(Fee::all()->pluck(‘name’, ‘id’)) ->afterStateUpdated(function (Set $set, Get $get, $state) { if (count($state)) { $set(‘price’, Fee::findMany($state)->sum(‘price’)); $set(‘sub_price’, $this->getOwnerRecord()->addons()->sum(‘qty’) * Fee::where(‘type’, FeeTypeAttribute::MONTHLY->value)->findMany($get(‘fees_description’))->count()); $set(‘total’, $get(‘price’) + $this->getOwnerRecord()?->addons()->sum(‘qty’) * Fee::where(‘type’, FeeTypeAttribute::MONTHLY->value)->findMany($state)->count()); } else { $set (‘price’, 0); $set (‘sub_price’, 0); $set (‘total’, 0); } }), I have the following form in my relation manger in […]
Multiple Livewire components in Filament 3 resource gives console error uncaught Snapshot missing
in my Laravel Filament v3 resource i have three Livewire custom components. The edit page loads with components, so far so good. But when i do something unrelated, for instance opening a delete confirmation modal (can also be clicking on relation tab), two of the components break with error message:
livewire.js?id=239a5c52:4437 Uncaught Snapshot missing on Livewire component with id: jMDrgTOxz321azWwuPDI