Filament

F

Filament

A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire

Join

React to Repeater being deleted

Is there a way to react to a repeater item being deleted? I created a custom entry following the documentation here - https://filamentphp.com/docs/4.x/infolists/custom-entries I have the following logic...
Solution:
->partiallyRenderComponentsAfterStateUpdated(['payment_summary'])
->partiallyRenderComponentsAfterStateUpdated(['payment_summary'])
This one work. To me also makes sense that ->delete would trigger afterStateUpdated()....
No description

Navigation click problem

Im from v3 upgraded to v4. My problem is sometimes when i clicked navigation button i doesn't respond. I need to refresh the whole page to make it work. I don't think whats the problem

Table summary

Why the summary is not shown below the summary row: https://filamentphp.com/docs/4.x/tables/summaries ``` TextColumn::make('status')...
No description

Filament not calling reorder action (repeater) on drag&drop

I have a form with a repeater. The repeater reorder is working fine by using the moveUp/moveDown actions but the reorder action fails. MountableAction->call is not called. ...

Help Migrating plugin from V3 to V4

I'm trying to migrate a plugin on github from filament v3 to v4, so far i managed to fix all the imports and change the structure to follow v4 however i'm stuck on finding alternatives for some no longer used blade components from v3. I tried to look around the v4 repository but i didn't find anything close to these. While i could go and grab them and implement them into the plugin i would prefer to use something native to filament so i can keep the functionality and styling consistent with all the future updates. ``` x-filament-tables::empty-state...
Solution:
They were probably all inlined. So it's just HTML + CSS now.

Compact Repeaters

Trying to make Repeaters Compact - https://filamentphp.com/docs/4.x/forms/repeater#compact-table-repeaters However, does not appear if compact exists in Filament\Forms\Components\Repeater?...

RichEditor not working after update to Filament V4

I'm using standard RichEditor and after updating everything from Filament V3 to Filament V4 I'm getting this error in console when I open modal with RichEditor inside and my content doesn't get pasted in, any ideas? Not sure where to even begin figuring this one out. `->schema([...
Solution:
I did solve it, but no idea why. I went to another branch to fix something, went back to the branch where I'm updating to filament v4 and then ran composer update, npm install, npm run build and npm run dev again and now it works.
No description

How do I receive URL parameters in a custom page?

Sorry, this is a really simple question, but I have been struggling with it. I've created a custom page: `<?php namespace App\Filament\Pages;...

What's the best way to display "Rich Editor" JSON content within an Infolist?

I'm thinking about "RepeatableEntry" but that feels like I'll have to do a lot of custom code, is there an easy way to display this content by using a view entry for a Rich Editor?
Solution:
I have since discovered a solution for this, in case anyone stumbles across this thread in the future: ```php TextEntry::make('content') ->state(fn ($record): string => RichContentRenderer::make($record->content)->toHtml())...

Is there a way to just keep one block open in a builder block?

I built i live editor and for UX it would be nice of only one Block can stay open. Any idea? Or is there a baked in function?
No description

Issue with relation loading when using an action with multi tenancy.

- You have a ViewPage with relational content that uses withoutGlobalScope('tenancy') to show data from other tenants - If you perform an Action, you will get the issue that the relational data is not loaded any more.
Attempt to read property "model_id" on null
Attempt to read property "model_id" on null
...

Wizard Header as Navigation link

How can make wizard header as widget or section as link in every pages?
No description

Error while rendering livewire component inside of view rendering in modalContent()

Hi, I made a discussion post on the repo (link: https://github.com/filamentphp/filament/discussions/17907) for what I think is a bug, but I though I'd post it as a discussion first and repost it here to try and see if this is a known issue or possibly outside of the spec of what filament can handle in terms of component nesting. Anyway, I'd appreciate any assistance if you can help, if you could please respond to the discussion on the repo, it would be excellent. Thanks in advance!...

i need filament RTL

hello everyone can i halp me for file filament RTL

Keep the records selected when filtering

Is there a way to keep the records selected by a bulkAction after the user applies filters? Whenever a filter is used or a search is performed, all records get deselected.

SpatieMediaLibraryFileUpload mime

SpatieMediaLibraryFileUpload::make('documents') ->label('Please upload a copy of the documents.') ->multiple() ->collection('docs') ->acceptedFileTypes([...
No description

Get input value in suffix action

Ok I'm probably missing something obvious, but how do you get the TextInput value in a suffixAction? ```php public function infolist(Schema $schema): Schema { return $schema...
Solution:
Hey thanks for the reply. It was missing the public array $data declaration. I thought since it was extending Filament\Pages\Page, it would already have that

Filament nested resource with pivot

Hi everyone! I have the following models Schedule Racetrack Schedule_Racetrack...

How to allow removing a single filter indicator when using `indicateUsing`

When working with a custom filter I want to allow removing a single filter option, so I customized the generator indicators using indicateUsing, but when I click the remove button on a single filter all filters are removed. Did I misunderstand the removeField option? ```php ->indicateUsing(function (array $data) { $indicators = [];...

ImageEntry default text instead of default image?

Is there an easy way to display an endash for missing images? I was thinking something like this but I'm curious if theres an easier way, something I could define once with configureUsing ```php ImageEntry::make('image') ->label('Image') ->visible(fn ($state) => $state !== null),...
Solution:
ImageEntry::make('image')
->label('Image')
->placeholder('–'),
ImageEntry::make('image')
->label('Image')
->placeholder('–'),
...