Filament

F

Filament

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

Join

How to put all of the table columns to the horizontal start of the table?

Hello! In the first image, you can see how Filament builds the table, but I want it to behave like the second image. Is it possible to achieve this? I want to move the checkbox and columns to the start and place the actions column at the end. Can this be done globally? I would like to apply this change to every table in a project. Thanks!
No description

How to customize getTabs() layout for mobile view?

Hey! I'm using Filament with getTabs() in my Livewire component. On mobile, the tabs scroll horizontally, but I’d prefer a layout that’s more like a vertical stack or tag-style — just something easier to tap through on smaller screens. I’m not the best when it comes to CSS or custom styling is there a simple way to tweak the layout for mobile? Any tips or direction would be awesome! ...
No description

Require confirmation on select change

Hi! Is it possible to show a requires confirmation on form select when its changed? Not notification, show requires confirmation modal from filamentphp Thanks!!...

Problem With Tailwind Classes Not Applying

Hi, Did anyone had issue with some tailwind classes not applying? Let's say classes like absolute, flex, and so on are applying when added to html elements....

How to Add Month Filter to FilamentPHP StatsOverviewWidget?

I am creating a custom StatsOverviewWidget in FilamentPHP to display monthly statistics. Currently, the widget displays data for the current month using Carbon to specify the date range. Now I want to make it more dynamic by adding a month filter so that users can switch between different time ranges such as "This Month" and "Last Month", or even specific months using the dropdown menu in the widget header. is that possible in filament StatsOverviewWidget?...

How can I review data in wizard form before saving?

Step 1 -> fill all of data Step 2 -> want to see all data to review...

"Laravel Filament Login Route POST Method Not Allowed on One PC Only (Works Elsewhere)"

What I am trying to do: I'm working on a Laravel + Filament project and trying to access the admin login page (Filament default login). The project works perfectly on other PCs. What I did: ...
No description

ActionGroup Action caching custom view

What I am trying to do: I am trying to open a custom view in an Action Modal inside an Action Group What I did: I simply followed this example https://filamentphp.com/docs/3.x/actions/modals#passing-data-to-the-custom-modal-content. My issue/the error: After I open one modal, the following modals that I open, have the same content as the first one, might be some caching mechanism but I can't figure out why it is doing that....

Table action buttons are showing when not authorized but only when a modal is shown.

Is this a bug or am I doing something wrong? See the button action group on the end of each table row appear and disappear when the modal is shown/hidden.
Solution:
I submitted an issue on the repo in case anyone hits this in the future: https://github.com/ryanmortier/filament-table-row-action-authorization
No description

How do I add custom JavaScript to a form?

I am using the ColorPicker component and I want to change the SVG prefix icon color with JavaScript so it reflects whatever color has been chosen in real time. However I can't figure out how to get the JavaScript on to the page when it renders. I've asked copilot and gone around the houses looking at getScripts and getFooterScripts in the edit page resource neither of which viewing the source appear to be doing anything. Would really appreciate some advice, you'd be really helping me out....

How do I upload file on click only?

```php public $import_file = null; protected function getFormSchema(): array {...
No description

What does this error mean?

Filament\Forms\Components\Actions::make(): Argument #1 ($actions) must be of type array, string given, I just followed the documentations code but its giving me error? https://filamentphp.com/docs/3.x/forms/layout/section#aligning-section-footer-actions...
Solution:
Finally found how to use it correctly use Filament\Forms\Components\Actions; ```php ->footerActions([...
No description

filament v4 schema

Hello, i try filament v4, and the schema it's so cool. But i have question it"s possible when you have a schema to get schema array. For exemple MySchema::configure($schema)->toArray(). It's so cool if exist...

How to use filament Tailwind class in a custom page?

Hi, I'm using a custom page in my filament application. In the view, I have a simple button. How to use the filament tailwind class to give the same look as the rest of my application? I tried "dark:bg-custom-500" for example but it's not wrking
Solution:
You need a custom theme.

How do I override getMaxContentWidth() globally?

Hi, I know about the ->maxContentWidth(MaxWidth::Full) method in an AdminPanelProvider, but it applies to every page. I need to apply it only to listRecords pages. Can I overwrite it for example in a AppServiceProvider?
Solution:
I believe Filament uses xx.index for list pages. You could create a custom middleware and use something like this ```php public function handle(Request $request, Closure $next): Response {...

Why Error inject param Action Class in `handleRecordUpdate()`

Error
Method 'App\Filament\Resources\UserResource\Pages\EditUser::handleRecordUpdate()' is not compatible with method 'Filament\Resources\Pages\EditRecord::handleRecordUpdate()'.
Method 'App\Filament\Resources\UserResource\Pages\EditUser::handleRecordUpdate()' is not compatible with method 'Filament\Resources\Pages\EditRecord::handleRecordUpdate()'.
...

why im getting this error in filament file upload

The data.media_file_video.0503f964-e3b1-4e80-9d0f-ce2565504557 field must not be greater than 12288 kilobytes. this is very new to us this is my code...

Testing createAction from table

I want to test createAction Action from headerAction of a table.. This form contains textinput, select, and repeater.. But i don't know why by test fails, becaise has errors on type (inside repeatear) throw thats its empty. I attach Table, FormSchema and test ...

Do we have to create exporters for each list having different columns but of the same model?

I have created StudentExporter to export excel file of relation manager table and this table is being used under different resources, where columns with conditions to show on specific resource and hide otherwise. Then if someone wants to export the table, they will get the columns define in exporter. Is there any way we can tell exporter what columns needs to be exported?
Solution:
Sorry for getting back lately! I have used cache to save the visible column names in table ExportAction. Then in the exporter, I have defined all possible export columns. When export job is initiated, it first gets the visible columns from cache, maps them by name, and then filters them to include only those that are marked as visible. The getColumns() function returns the filtered list of columns for export....

Repeater open always only one item at a time

I need my repeater to always have only one item open and everything else collapsed. How can I do this?