Filament

F

Filament

Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.

Join

Help Us Improve Filament’s Docs & Education in v4

Hey everyone! As we gear up for Filament v4, one of our big priorities is rewriting the documentation to make it clearer, more complete, and easier to navigate. At the same time, we’re planning a wider education strategy, probably including official video courses. But we need your help! If you've learned Filament - whether recently or way back in v1 - what were the biggest pain points? 🔸 What parts of the docs confused you or felt incomplete?...

Set multiple properties on the same field

What I am trying to do: I have a company model which contains the following fields: address, city, zipcode, country and location (postgres geography column: latitude, longitude). I'm attempting to use a Google Maps autocomplete to fill out all of the models on the property from what is returned from the autocomplete field. I would just like to know if there is a simple way to send multiple properties to the view and receive multiple properties back from the view when saving. ...

Pages not displaying in Cluster nav

We execute command php artisan make:filament-page Products (no resource and selected namespace App\Filament\Clusters\Settings\Pages), which generates file Filament page [app/Filament/Clusters/Settings/Pages/Products.php] created successfully.. However, it does not appear in the cluster. What could be the reason for this? Other pages are displayed correctly. Even copying an existing page and changing the class name does not work. Even after executing command php artisan filament:upgrade, nothing is visible. Laravel: 11.44.0 / PHP: 8.4.3 / Filament: 3.3.0...

Background Cell Color?

Anyone used an enum to color a background cell in a table?
Solution:
nvm, just used getCellAttributes and passed a style in with a getStyleColor function on the enum.

Select option formatting

Good morning filament fans! Is there a way to have a select using a relationship to display 2 columns ? I.e. product code and name? E.g. "WD-001 Wooden blocks"
Solution:
Sorry I did write a reply. I would personally recommend using a virtual column if using MySQL as: https://laraveldaily.com/post/virtual-db-columns-laravel-migrations-mysql Otherwise, you can use getOptionLabelUsing(fn($record) => $record->values)...

Passing ID to a custom header action in show page

Hello ! I'm having an issue when trying to create a specific resource. I basically have my MainResource show page and I add this inside : `protected function getHeaderActions(): array { return [ Actions\Action::make('create patient')...

Delete equivalent of handleRecordUpdate or handleRecordCreation

On create page we have handleRecordCreation to insert additional logic, same with update page where we have handleRecordUpdate are there any equivalent for delete?...

Anyone modified Filament3 to work with Tailwind4?

I have a new laravel project that us using laravel 11 with Tailwind4 and then installed Filament. Having some trouble making changes to modify the theme a little bit and saw a note on the docs about suggesting to downgrade to Tailwind3 (which I don't want to do) and don't want to wait for Filament4 as I need a fix now. Any suggestions?...

todo list

I'm trying to create a todo list but it's not the way I wanted. I used CheckboxList to display tasks inside a Section. In the Section header I placed the add task button. Everything is working fine. However, I want to put a delete button next to the tasks with a confirmation modal. Does anyone have a suggestion on how I can do this? If anyone has any better suggestions that would be great too....

Forbidden when edit richtext

Hello! I just deployed my Laravel project with Filament, but I'm having a problem with RichText. When I edit a record, it displays a Forbidden error. The error only occurs when I change the RichText field. If I change any other field, it works normally....

Can't seem to globally change the AttachAction modal width?

I have a service provider where I'm configuring defaults for many components. One component I'm trying to configure is the Filament\Tables\Actions\AttachAction modalWidth. I'm doing the following: ```php Tables\Actions\AttachAction::configureUsing(function (Tables\Actions\AttachAction $component): void {...
Solution:
Hmm, after looking at the configureUsing method, it appears there is an isImportant parameter that I can set to true which solves my issue.

how to use formats with importer

is it possible t use xlsx format to import? i don't see this in the documentation. ```use App\Filament\Exports\ProductExporter; use Filament\Actions\Exports\Enums\ExportFormat; ...

Form builder - trying to create/edit relationship with pivot

Hello all! I'm trying to, as the title states, edit a relationship with a pivot table. Here are the relevant code snippets: ...
Solution:
If this helps anyone, the solution was to use AttachAction instead of CreateAction.

I am trying to implement the csv export but file not created.

I have added the code and migrations and everything goes exactly as the tutorial but the csv file is not generated. In the export table the file is listed but there are 0 successful rows. Also if I change the field in the DecorExporter.php file to one that does not exist no errors are generated. See below. Any advice gratefully received. public static function getColumns(): array { return [...
Solution:
You probably have a queue driver different from sync and your queue is not running?
No description

The GET method is not supported for route livewire/update. Supported methods: POST.

i am having issue after changing nginx or cors and i dont know what made this error ... How i can fix it
No description

No synthesizer found for key: "" on FileUpload

Hello I just started filament and laravel one week ago, dans I'm facing this error when I try to upload a file using FileUpload. this is my code : `Forms\Components\FileUpload::make("{$eye}_pdf") ->label('Fichier PDF')...

Filament accessibility for Screen Readers

I'm looking for someone to sync up with regarding accessibility in Filament apps, specifically optimizing for screen reader use by blind users. If you have experience, resources, or advice, I'd really appreciate any insights. I previously posted about this, but it hasn’t gained much traction. If you're interested in checking it out, you can find it here: https://discord.com/channels/883083792112300104/1343663379541266432....

validationMessages within createOptionsFrom not working as expected

Hi All, ```php ->createOptionForm([ TextInput::make('name')...
Solution:
@awcodes, We have managed to work this one out: ```php TextInput::make('name') ->label('Job Title')...
No description

Finding the files or code to edit the Error message

Hi Guys where i can usually find the error Message to be edit
No description

How to dynamically set defaults for Repeater fields?

Hi, I want to dynamically set the defaults of some Repeater fields, based on a "global" value from a different Form field outside of the Repeater. For example: - "global" Select Field for a color -> red selected - Repeater has a Select Field color too, that should have the default red (but can be changed independently, so not the same field ID)...