Filament

F

Filament

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

Join

Repeater Table Mobile Breakpoint options

I'm relatively new to Filament. I'm working on a project and decided to try out v4 to use the table repeaters. Are there any options or plans of any options for either responsive layout fields or customizing the breakpoint on the table?

Filament: Editing file upload - not previewing

After form uploaded, the uploaded file moved from public to s3. Editing Uploaded file not previewing Here is my form snippet `Forms\Components\FileUpload::make('ads_video') ->label('Ads Video')...

Create action with relation manager

I don't get it about why I need product_id in my stocks relation manager like that? stock relation manager ``` protected static string $relationship = 'stocks';...

Do I still need to do ->disabled()->dehydrated(false) in v3?

I remember in v2 we always have to do ->disabled()->deydrated(false) to ensure the form field is read only and not editable. But I'm not sure about v3.

Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

I keep getting this error every time I change the pagination range to all. Current filament version is ^3.2.

I want use local storage js in afterStateUpdateJs() filament have defaultJs()

I want use local storage js in afterStateUpdateJs() filament have defaultJs()

Second modal always shows the first modal's content

Hi everyone, I'm stuck on a stubborn modal issue. On a custom page with a table, my first modal action works fine. But after I close it, any other modal action I click just shows the content of the first one again, not the new one. I've tried all the standard solutions for this "stale state" problem, and even the most aggressive fixes are not working: 1. Overriding mountAction() to call $this->reset() at the very beginning. The state is being reset on the server. 2. Using JavaScript to listen for an event and forcefully clear the modal's HTML (.innerHTML = '') before the new content is loaded....

Fill form in CreateAction

i have Offices and Members, if a member is created from an already existing office office_id should be forced (pre-filled) i created a MembersRelationManager that extends RelationManager, i have MembersTable with headerActions: ``` CreateAction::make()...
Solution:
You use use the ->fillForm() method on the CreateAction

bug when reordering a repeater with markdown editor

on reorder, all the item can drop into the markdown editor. Because of not blocking that editor on move/drop ...

How to refresh select options after hitting Create another?

Hi guys, I have two relation managers on one resource, one has form with select that uses relationship with modified query. The other one has also select but has options method because I wanted to group options inside select. Problem is, when user create new relation and hit Create and create another, that use case with relationship will refresh query in select, but in options it is not refreshed. Can you help me? I can give you code. I just need to exclude option already selected.

->collapsedSidebarWidth() not taking effect

What I am trying to do:
Adjust the width of the collapsed sidebar.
What I did:
Used ->collapsedSidebarWidth() with different values (like '9rem') as in the example at https://filamentphp.com/docs/3.x/panels/navigation#customizing-the-width-of-the-sidebar...

Adding more info after Filament User logged in.

Hi guys, in many Laravel projects I have altered the users table, adding more columns such as "current_sign_in_ip", "sign_in_count", etc. This is the first time for me with Filament, and I need help to understand how to store this new data info after the user has properly logged in. I already have my custom class "Login" (which I am obviously using) where I have overridden "getCredentialsFromFormData" protected function. Everything is working really well, I just need to fill my new custom columns. Where should I do that? Should I alter somehow the "authenticate" function? Or should I alter the login form by adding hidden fields? Thanks in advance for your help. Loris...

Inconsistent performance on pagespeed

I have a site in production which is having heavy oscillation in performance seemingly at random. For example here is a scan with extremely good performance https://pagespeed.web.dev/analysis/https-codicerisparmio-it/k5gancc7ra?form_factor=mobile and a scan fresh of this morning...
No description

Make settings translatable

Hi everyone! I'm struggling to make my settings translatable. I currently use:...
Solution:
The Spatie Translatable package handles the logic for setting/getting the translatable values. If that package doesn't work with attributes, you can't use that and need to roll your own solution. Maybe you can use it's "Context" feature: https://randallwilk.dev/docs/laravel-settings/v3/basic-usage/contextual-settings...

When using BulkActionGroup inside of a BulkActionGroup get \IconSize::tryFrom() Error.

When using a nested BulkActionGroup in V4 get the following error:
Filament\Support\Enums\IconSize::tryFrom(): Argument #1 ($value) must be of type string|int, Closure given
Filament\Support\Enums\IconSize::tryFrom(): Argument #1 ($value) must be of type string|int, Closure given
...

Navbar accordion

Hello, I would like to know if there is any way to change the behavior of my navigation bar in my filamentphp project so that it behaves like an accordion, without having to use the larazeus plug-in. I would like only one group to be displayed at a time of all the ones I have.Thanks
No description

TableSelect V4 odd behaviour

Hello, I know that this is v4, which is not out per se but I was hoping to shed some light on this. I was aiming to achieve the following UI where there's an action, it opens a modal with a table and allows me to select multiple records....
No description

Use query params for table widget search and filters

Hi all Does anyone know how to make table widgets use query params for search and active filters? I need the current search and filter state to be preserved in the URL. It's a custom page with a table widget (not a resource page). I've set a ->queryStringIdentifier() on the table but that didn't help....

Orderable method for table subgrouping

https://filamentphp.com/docs/3.x/tables/advanced#reordering-records Hello everyone. I am interested in whether I can make an order not for all records, but for example the driver_id field should be taken into account. That is, something like grouping by group. For example, there are 3 records with driver_id=1 and 5 records with driver_id=2. Records for driver one should have a field orderable from 1 to 3, and if they are moved, they change places. For driver 2, records 5 and they can also be moved and the field orderable from 1 to 5...