Filament

F

Filament

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

Join

Failing to import a user csv in staging

Hello, I am experiencing an import issue that only occurs when attempting to import data into the users table in my staging environment (hosted online). When I try to import a CSV file containing users, the import job either: Gets stuck in a loop and fails,...
Solution:
Problem solved, it was validation errors with an improper csv.

Select relationship automatically select value after creation

Correct me if im wrong, but if I have the option to create a new record in my relationship select... does it not automatically select it upon creation ```php Forms\Components\Select::make('tags') ->relationship('tags', 'name')...

Need help how to style the `prose` in TextEntry, is there any way to do it?

```php TextEntry::make('body') ->hiddenLabel() ->extraAttributes(['class' => 'prose-p:text-red-400']) ->state($arguments['body'])...

Can you help me with performance?

Hi guys, I have a little issue with performance on my production app. In TaskResource that has about 6 columns (1 relationship) and 25 rows with tabs I have about 1,4 s response on production. I have enabled OPcache, everything is cached. In local enviroment it is about 500 ms. I think it is still too much. I tried to delete filters, policy, columns. Only when I deleted View and Edit action it drops to about 250 ms.

v4-beta8

need help my attach button break on filament v4-beta8 it still works on v4-beta6 . it throw error on interactwithrecords trait ....

Repeater "Table" with dynamic columns

I'm trying to make a dynamic "table" form using repeaters to add any number of rows and columns. Row headers need to be customisable so the existing Repeater@table doesn't fit the bill. I've tried a few odd things but just trimmed it down to this for an example. Examples of problems in thread ```php...

Created a Group Resource but nothing shows up on the left side navigation item?

I have created a Group Resource but nothing appears of the left navigation? What am I missing?
Solution:
Have a look in your Policies do you have one for Group? If so, it's possible the policy isn't allowing it to be shown hence it not registering
No description

Using Grid inside an exporter to organize the export columns

I want to use Grid just like in a form in exporter for export action to organize my columns in more nicer way. how to do it? because right now it return me this error ``` Filament\Actions\ExportAction::{closure:{closure:{closure:Filament\Actions\Concerns\CanExportRecords::setUp():82}:86}:88}(): Argument #1 ($column) must be of type Filament\Actions\Exports\ExportColumn, Filament\Schemas\Components\Grid given ...

How can I set a file to FileUpload input when editing?

I'm creating a form that has a FileUpload input but when i want to edit it, how should I pass the existing file? i tried this but it didn't work (I'm not using the panel component) ```php public function mount(): void {...
Solution:
So you should just render the path as it was stored by the file upload field... You shouldn't need to use the Storage disk since the plugin handles all that

Add custom row to Export Action

Hey all, quick question — Is it possible to add a custom row to the CSV export? For example, a row with totals or some additional info at the bottom of the export? I know I could write my own implementation for this, but I was curious if there's a way to do it using the native export action....
Solution:
There doesn’t appear to be a native way of doing this, so I solved it by extending and customising the PrepareCsvExport job, as per the documentation here: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#customizing-the-export-job

Unable to create a custom theme

Hello, When I follow the documentation, I get the message : `` ⇂ It looks like you have Tailwind v4 installed. Filament uses Tailwind v3. You should downgrade your project and re-run this command with --force`, or use the following command to compile the theme with the Tailwind v3 CLI:...
Solution:
makes sense, if you don't specify the config file it will try to use the default one.

form action button alignment

I want to alignment in FormActions in CreateForm like this image Could you pls help?...
No description

Issue with Filament Action Modal inside Livewire WireModal

I'm currently using a Livewire WireModal as the parent modal, and inside it, I'm triggering a Filament Action modal. The problem is that the Filament modal always opens inside the parent WireModal, causing it to overlap visually and structurally. However, this issue doesn’t occur when nesting a Filament Action modal inside another Filament modal — in that case, it works perfectly. Has anyone else faced this issue or found a clean way to make Filament modals render outside of the parent WireModal?...

Can I access field not dehydrated in after method?

Hi guys, I have RelationManager with toggle in form that is not dehydrated. Based on this toggle I want to do some stuff after relation is created. I can probably update whole saving relationship process on CreateAction, but I hoped for simpler solution. ```php Tables\Actions\CreateAction::make()...

ImageColumn image zoom

What can I do to zoom an image when clicking on the ImageColumn in a Filament PHP table?

Automatically Assigning Spatie Role After Registeration

Hello guys i've a problem in CustomRegister page I wanna to assign role directly after form registration I'm trying to make it like this photo but it's not correct Any Help Plz !!...
Solution:
i've fixed this by defining a variable that holds user data to get him by email and then assinning a role for him
No description

Laravel tenancy and Filament 4

Hi! I have some spare time and i want to try this new filament 4 (i have a lot of experience with v3) and th laravel tenancy integration (without using plugin) i have 2 panel, admin and tenant...

Hello. is there a way to pre-check all records in a table as its default state?

When i say pre-check - i mean, actually make each row's checkbox selected, like a bulk action of 'select all' would do, so each time user enters the page - its already in a 'select all' mode.

Wizard Progress Summary

Channel newb here.. I'm working on a v4 wizard looking to show progress through each step, including both id's needed for wizard completion (e.g. client_id '1') , but also 'display' values for human readability (e.g. Client Name 'Acme Corp'). Did quick scan through here of 'Wizard' but did not see anything. Also read Wizard docs. Is there a definitive Wizard guide beyond what is in current docs?...