Filament

F

Filament

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

Join

Unsure how to handle data from multiple select within a Repeater to save to pivot table.

I'm brand new to Filament and trying to use v3.x in a Laravel 11 app. I have an issue when using a multiselect in a Repeater. THE SETUP I've created an example repo (https://github.com/39digits/filament-repeater-multi) as a slimmed down version of the issue and created contrived models to try represent the issue in as simple a way as possible....

Filament routing

I am builing a multi tenant app using "tenancy for laravel" and I want to have an admin panel (using filament) on my central domain to manage all tentants information. The filament route would be "central.domain/admin" If a tenant tries to access "tenant.central.domain/admin", a 404 should be shown. ...

Strange error with RAWJS

Hello everyone. Does anyone know how I can fix this error? It's happening when I use a TextInput->mask(RawJs::make('$money($input, ",", "", 3)')) in the form. Thanks
Solution:
Resolvido trocando o componente de InputText pelo Money do Filament-ptbr-forms-fields.
No description

How to clear DateTimePicker field?

Does anyone know if there’s a good way to clear the DateTimePicker field please? Native or non native, I don’t have a clear button anywhere! Thanks...

Property [$image] not found on component

Hey, I am creating a form on a Page created using php artisan make:filament-page inside the Admin Panel but for the image field it is giving Property [$image] not found on component: [app.filament.app.pages.submit-contest-entry] error after file is uploaded from the frontend. While declaring public $image property in the class it gives the following error Property type not supported in Livewire for property: [null] Any idea what could be the case? Thanks...
No description

host

inPrivate the menu don´t show
No description

Best pratices for reporting page

HI, I would like to create a reporting page (tables, graphs etc) for my application. Reading the documentation I saw that I can use widgets. ...
Solution:
Thank you very much, as I imagined the problem was in the passage of the filters in the view. Your code gave me the solution ...

Export sort by column other ID causes an incorrect amount of rows exported

https://github.com/filamentphp/filament/issues/11006 Hello I'm facing the same issue. When exporting large amount of data on a resource with
defaultSort
defaultSort
their is some missing rows and others are duplicated....

How can I use Laravel ENUM in the Filement table?

how can I use Laravel's ENUM in the Filement table and form? I'm doing it this way, but is there a better way to do it? ``` ...

Display date format

I am trying to format datePicker field using ``` DatePicker::make('date_of_birth') ->displayFormat('d.m.Y.') ->required(),...

TextareaColumn

Is there any possible to make a textareaColumn because I have a table that is all with TextInputColumn, that users make changes in table but I have notes in the end of the table and I need it to show all the content for example with 4 rows Is there any solution for this....

Export Visible Columns ONLY

Hello, I have a table with many columns and user can make columns visible or hide as needed - I also have an EXPORT action, with Filament Exporter, I want the exporter to only export columns which are visible. in Filament, the Table columns and exporter columns are both defined in 2 separate classes table has its own list of columns...

Livewire encountered a missing root tag when trying to render a component. On widget

Someone that can help me? I get this error "Livewire encountered a missing root tag when trying to render a component. When rendering a Blade view, make sure it contains a root HTML tag.". If I follow the stack trace I see it is because of an Filament Chart widget, but I did it according to the docs of filament so I don't need to do anything else. This is on an filament dashboard. I also can not recreate the error locally, this is only in production. Thanks in advance

null returned for Filament::getTenant() on a second panel

Hi, I am trying to getTenant on my second app panel. I can see tenant when i call the function on the admin panel. ```php public function canAccessPanel(Panel $panel): bool {...

Fialment js and css assets

Couldn't find anything about this. Can i safely gitignore public\css\filament and public\js\filament folders if run composer update and npm run build on deploy?...
Solution:
Yes

How to remove table loading animation ?

Is there a way to remove the table loading animation without editing the view file
No description

How to add custom css class to Specifics resource

Hi, imagine i have UserResource and PostResource. How to add custom css class to PostResource only? My goals actually add custom class in Table Header but i ask AI or read documentation and is not possible, so maybe you can help how to add custom class css to Resource so i can nested class like .custom .fi-header { apply: px-12; } ...
Solution:
ah, it's not on the body, it's inside main.

How to add all tailwindcss to custom theme?

Need add all tailwindcss classes to my filamentphp project. Any help?

ExtraModalFooterAction does nothing

Hi, I'm trying to render an extra action for the editOptionModal: ```php ->editOptionAction(fn (Forms\Components\Actions\Action $action) => $action->extraModalFooterActions(fn (Action $action): array => [ \Filament\Actions\Action::make('something')...