Filament

F

Filament

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

Join

The cancel button in a slideOver or modal triggered from an edit table row does not reset the form

Create a Resource file. Sample as below: click row 1 of table row to edit. SlideOver is displayed with correct data. Click Cancel or the X of the slideOver. click row 2 of table row to edit. SlideOver is displayed with data from row 1. This is of course incorrect. ...

How to load different table columns based on screen size?

Hi all, I'm trying to create a table where the number or type of columns adjusts automatically based on the screen size. Is there a way to detect the screen size when the Livewire component loads, and then conditionally call either function1() or function2() inside the ->columns() definition of the table? In short: I want to load different sets of columns (normal or stacked) depending on whether the user is on a small or large screen. What would be the best approach to achieve this? I am not using panels....

Panel domains not working on v4

Hi, I'm trying to use two panels with two subdomains in filament 4. But the same panel is opening in both subdomains. When I'm configuring the panel, I'm setting the subdomains via $panel->domain('sub1.domain.com') and $panel->domain('sub2.domain.com') ...

How can i use spatie translatable in v4 ?

composer require filament/spatie-laravel-translatable-plugin -W
./composer.json has been updated Running composer update filament/spatie-laravel-translatable-plugin --with-all-dependencies Loading composer repositories with package information Updating dependencies...

Wizard and ActionNotResolvableException

When trying to use $this->form->fill() on a page with a Wizard I get an error Filament\Actions\Exceptions\ActionNotResolvableException: An action tried to resolve without a name. I'm probably lacking some obvious trait but I cannot figure it out. What am I missing? 🤔 I get the error whether I try InteractsWithSchemas or InteractsWithForms. ```php...
Solution:
Code was missing a statePath ``` return $schema ->statePath('data') ->schema([...

Prevent caching on modal popups from a table

I have table that for each row includes 3 actions that individually work fine, and the first one clicked will be correct. But if I subsequently click another in the row (2nd or 3rd), I get the contents of the modal with the first click. I am thinking this is a reference error or caching problem but can't see anything in the documentation that would help me resolve this. Refreshing the page and clicking the second item shows correctly, but now the first item will show the contents of the second (and vice-versa). Can I force the action to always take a fresh instance, or can someone suggest ways I should debug this? Code:...

[Filament v4] Filtering TableSelect with Tabs

Hi all 👋 I’m using Filament v4 and I’d like to display tabs above a TableSelect field to filter the selectable records. The goal is to let users click a tab (e.g. event category) and have the TableSelect update its query accordingly. Here is what I have done so far:...

Database Notification open Resource modal action

Hello, I would like to know if it is possible to add a button to the notification that redirects to a resource and displays the resource's modal action?
No description

Column Not Found SQL ERROR

Hello, i'm using Filament 3.3. I have 3 tables in database ("employees", "departments" and a pivot table "department_employee"). I have a belongsToMany relationship in "Employee" and in "Department" models. I also have a pivot table "department_employee" that joins two tables. When I fill out the form "create employee" and enter data into the database, i get the error message: Error: `` SQLSTATE[42S22]: Column not found: 1054 Unknown column 'departments' in 'field list' (Connection: mysql, SQL: insert into employees (last_name, first_name, middle_name, email, IP, departments, updated_at, created_at`) values (Doe, John, Thomas, john@example.com, 192.168.1.26, 11, 2025-06-18 09:37:29, 2025-06-18 09:37:29))...
Solution:
try ->multiple() for BelongsToMany relationships in the Select component https://filamentphp.com/docs/3.x/forms/fields/select#integrating-with-an-eloquent-relationship...

Can't open folder options

When I click on three dots on each folder is just triggering folder opening action and I can't open options and rename or delete folders!
Solution:
For anyone facing similar issue with "laravel-filament-media-library": It's a bug in "ralphjsmit/laravel-filament-media-library": "^3.9" If I use 3.8 version forcefully this issue is not occurring....
No description

Globally configure table record actions - v4

Hi For my application i prefer having all table actions as a ->iconButton() by default. Previously i was able to do this globally in the boot method of a service provider: ```...

[Feature idea] Let FileUpload component display "blob" images

Hi, In both ImageColumn and ImageEntry, there is a code which checks if state starts with 'data:'. ```php...

Error on action unmount when using arguments in ->record

I'm using the EditAction like this: ```php EditAction::make() ->record(fn (array $arguments) => Company::find($arguments['company']))...

ModelTableSelect not filtering by visibility

I'm using ModalTableSelect to choose a media item, and I want to show only those with visibility = Opengraph. However, all media items are showing. ```php ModalTableSelect::make('media_id') ->label('Media')...

FilamentFilament::getCurrentPanel() outside panel issue

I was expecting that Filament::getCurrentPanel() will return null if I am accessing it outside the panel like a public facing page but instead it returns the value of my panel...

Why did my filament dark theme become blue?

It was black and now become dark blue
No description

Refresh infolist repeater containing a relationship on action

Hey, I was wondering if there are any methods to refresh a repeater in an infolist through an action I've got an action (inside the infolist, not on header) that is adding records to the relationship and should refresh the repeater so that they will show but nothing happens ...

Multilanguage fields

Hi, I need some advice on how to handle multi-language fields in Filament. I have models like Country and CountryTranslation, and I will have dozens of similar models with translations. I created a helper that generates a Repeater, sets up the hasMany relationship, and disables the ability to add or delete rows. You can see the code here:...

Why do I need VPN to access filamentphp.com ?

For the past 48 hours i noticed Filamentphp.com isn't accessible, so I thought maybe i should try out a VPN first and then the website popsout ? Can I know why ? I'm located in Algeria. Thanks...

CreateUsingOption() not getting relation in $data

Hello everyone, I am stuck here. I have in a TableRepeater in which I have a Select with a createOptionForm and a createOptionUsing. So it kind of works... I mean, createOptionForm creates the form, I can fill it up normally and when I save it creates the new record. Good BUT, in this record I want to save, I have a relationship (in a Section) and this relation is not saved at all. Neither I get the relation in $data that I pass to createOptionUsing($data). ```php Select::make('relation_type_id') ->options(function () use () {...
Solution:
I think you can use ->dehydrated() to get the values instead of saving them directly.