Filament

F

Filament

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

Join

address lookup

anyone knows how i can look up and validate addresses by endpoints postal code ans house numbers? which free service provides this. anyone experience with this?

Set Action as iconButton() specifically handle record actions not overall

is there any way to set record action as icon button globally without change one by one in every action and resources ?
Solution:
Just tried the same example by @Oscar Carvajal but with EditButton, works for me: ``` use Filament\Actions\EditAction; ...

How to customize this name search query?

I have this column and filament is default with similar search key. I want to search exactly.
Tables\Columns\TextColumn::make('name') ->searchable(),...

Sushi in Fiament 4

Hi! I saw that in the latest version of Filament Sushi is no longer used (saw that in demo project composer file) . Is there a built-in solution now? I just need to use a model in the resource that does not have a table in the database.

V4 Exporter Action - set amount of columns?

We are using the native exporter but have a lot of data to export, is there a way to set the columns? i.e. 2, 4 etc like we can in forms normally? Instead of the one big list of columns?
Solution:
IT's columnMappingColumns(2) for example FYI.

Problem in table tabs in a custom page

Can someone help me? I was using resources table tabs in filament custom page, but since I upgraded the filament, it won't work anymore. It says. Unable to locate a class or view for component [filament-panels::resources.tabs]....

Standard way to inject field error?

I have ViewField::make('payment_method_id') whose custom view runs some custom JavaScript. If the custom javascript reports back an error I want to inject the error into the payment_method_id field so that it displays like all other errors do. Is there a generic built in way to do this? ChatGPT tells me I have to create my own (see below example), but it seems like something so common that there would be built in functionality for it. `catch (error) {...

No base path route names not working for login and register

I removed the base path from 'app' to ''. Now the route names are gone and I can't get to my filament login or register. I think the issue is its trying to use laravel auth and erroring out. If I remove the auth.php from the web routes file, should that take care of it without breaking anything....

Dynamic toggle columns based on relationship

So, I have this model Product, which links to ProductCountry (which is also linked to a Country) In my Product-table I would like to have a column for every Country with a toggle-button which indicates whether that product is enabled for that country. When clicking the toggle-button, it should either add the ProductCountry-record to the database, or delete it. How would I make this possible in Filamentphp?...

Formatting Gone after Upgrade

I just upgrade from v3 to v4. Everything functions correctly, but css/formatting is gone/broken. E.g., when I change over to dark mode in form view, all the field text is white on white E.g., I have a resource form with tabs; the tab words show up, but there is no "tab", i.e., you can see the tab . (see graphic). I am sure the css of default theme is not working correctly. I have tried clearing cache, etc, but I am lost as to how to fix this problem....
Solution:
I gave up and created a new laravel/filament app and copied all my code/resources over to the new site. UGH! It is working now, though
No description

How to reduce height of searchable fi-select in Filament?

Has anyone figured out how to reduce the height of a searchable fi-select? I can shrink a normal fi-input by adjusting the padding, but the same approach doesn’t seem to affect searchable selects. ```css...
No description

Switching Between Tabs Returns Schema Containter Initialization Issue

Dears, I have upgraded from laravel 10 to laravel 12 and it was a quite of an upgrade! So I have faced an issue inside a resource where switching between tabs resulting in initialization issue (Find attached callstack) The issue appears when:...
No description

Creating a belongsTo Relationship in a Filament Form: Is Fieldset::relationship() the Right Approach

Hello everyone, I'm working on a personal project to learn Filament and have run into a problem I'd appreciate some help with. I'm trying to create a new Member record, and it has a belongsTo relationship with a Person. My Goal:...

How to access the current group value on summarize function

I know I can access the current active group with $livewire->getTableGrouping()?->getId() but what I need is the value of the group. I have a summary that sums only values with the same currency and I want to format using the correct currency per group. For example: If my table has dollars and euros, when I group by currency I want to show the sum of the dollars as $ and the sum of the euros as €...

How to inject unsaved rich editor contents into an action?

How can I use action utility injection to capture the current contents, unsaved, of my rich editor? $record obviously gives me the current DB model from the database (which doens't include unsaved changes), and $state also gives me data (in a TipTap array format) that doesn't include the user's changes. What am I doing wrong? Is there another way to access the current unsaved state of the editor? The rich editor was constructed with ->live(). ...

Content of Editor not loading after hydration in Safari

I'm having problem in Safari with pasting 'content' field value into RichEditor field. I save some data (name, content), then immidiately open that data on modal as a form, my editor gets initialized but content doesn't get pasted into. This works out of the box on firefox/brave, but on Safari 'content' field doesn't load, while the 'name' field does load. Furthermore, this only happens on first try of this flow, if I repeat this flow then it's loaded correctly (I'm assuming editor is by now loaded correctly and then content gets pasted correctly). I tried to fix it by adding ->afterStateHydrated and it only works, when I'm dumping something, which is weird? if I remove the dump, it again doesn't work. Same thing happens if I turn on aand off the xdebugger? I'm really not sure anymore what to do here to load editor first and then when I can make sure it's loaded and ready to paste the content in? ...
No description

Issues with inconsistent table sorting with records having the same value for the sorted column

When sorting a Filament Table it appears to somehow randomise the results order within the records that have the same value that is being sorted. Say I sort on column X and records 1 to 3 have the same db value for column X, the order of records 1, 2 and 3 themselves when sorting seems randomised between 1, 3, / 3, 2, 1 / 1, 3, 2 etc. everytime when the table is "refreshed", for instance when toggling a ToggleColumn or paginating. I also don't see an "in" to add a orderBy('id') as fallback (last orderBy after every query) as this would fix it. Anyone else experienced and solved this somehow?...

Export action timeout (?)

I have an export action button on my dashboard, and so much other widgets that pulls data from a very large database. When I press the action, it triggers the other widgets and requests the data again, which causes a timeout. Is it possible to make it so that when I press the action, only that one thing is triggered?

Custom table Group component

Hi guys! I need to extensively personalize my group component, squishing a few information into a collapsible element. As you may see from my screenshot, the main information is repeated because of the nature of my Schedule model. I am fine with using "groupingSettingsHidden" and "default group" but I cannot find a way to create a new Livewire Group component or properly style my "getTitleFromRecordUsing". I cannot use ->html() either. Do you know any way or workaround to be able to do that? Thanks in advance!...

Is possible to pointing subdomain to each panels on filament?

for example www.domain.com/domain.com pointed to 'default' panel app.domain.com pointed to 'app' panel ...etc......