Filament

F

Filament

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

Join

Testing formActions

I have a following footer actions: ``` ->footerActions([ fn (string $operation): Action => Action::make('saveBasicDetails')...

livewire action

Hey, I would like to know how to pass an action to my Livewire component. I would like when someone clicks on any div in my foreach, the ViewAction is used Here is my code : ```php...

How to use different logos for the login and the sidebar ?

When I set brandLogo in config it applies the same logo. I'd like to use two versions of the brand logo with differents size : one for the login page and one for the sidebar. Any idea? Thanks
Solution:
You can pass a closure to the brandLogo so I guess you should be able to differentiate between login page and other pages using request/url

Dynamic Form Component

What I'm trying to achieve is to dynamically append additional form components to the parent form. The additional form components are encapsulated in a service class, and each service class has custom form components. When a user selects the service type from the dropdown, I want to take the selected state value, instantiate that service class to retrieve its form components, and then append those to the child container. What I did: I was able to replace the full form, but instead, I would like to append the additional form components to the parent form if possible. ...
Solution:
Thank you! This is what I managed to get working. ```php public static function form(Form $form): Form {...

The export modal only shows 1 column

I have this export data but the modal showing a long lists of checkbox.. It would be great if there is an option to list all checkbox into 2 or 3 columns.. how can I do it?
No description

Select with Relationship always Null

Hi, I always get a null response when submitting a form using select that is related to another model and has multiple types. Even though I have cast the model to an array and have also created a controller for it. Is this a bug or is there an error in my code?...
No description

HasMany Table Relationship pivot/group RelationManager

I have a table like: form_id | session_id | field_name | field_value 5 | 123 | first_name | john 5 | 123 | last_name | smith ...
Solution:
I got this working: ``` protected function getTableQuery() return $this->record->submissions()->groupBy('session_id')->getQuery(); }...

RTL

Can i make filament direction rtl instead of ltr
Solution:
publish the Filament config and change filament-panels::layout.direction to 'rtl'

Customize Reset password page

How can i re customize forget password and reset password page

Confirm model for option inside SelectField?

Hi guys, I have Select field at the beginning of my form for resource. When user selects an option from this field, it fill fill many other fields in that form. It works just fine. But now I need to show confirmation modal when these other fields are already filled, so user has to confirm to update these fields. For the filling these fields, I am using afterStateUpdated hook. But I am not sure if there is an option to show confirmation modal.

afterStateUpdated $old does not work after using Builder/Block

Hey, i am currently trying to use afterStateUpdatedon a TextInput in combination with a Builder. The resource i am working on does have a *title *and a *slug *attribute that i have implemented as described in the documentation as well as a Builder....

ImportColumn relationship nullable

How can i set an import column relationship to nullable? i dont want it to fail if it cant find a match. Im already handing creation of that relationship in afterCreate() if it wasnt found.
ImportColumn::make('author')
->relationship()
ImportColumn::make('author')
->relationship()
...

Replication causes 500 internal server error

Hello, I am using Replication with filament-fabricator and was facing this issue on production server whenever we created a replica page I made it redirect to the edit page but it always gave me 500 server error because the newly created page id was not found in routes somehow. I figured I always had to run php artisan optimize:clear command to make that page work so I created an observer to run this command everytime the page is created and it works ok but some times the optimize doesn't work and my client gets 500 server error. Please let me know if any of you have faced this situation on production server?...

resource navigation

How to customize the notification message after updating a record on a custom edit page? I got the following ```php...

Hello guys.

I have a problem in development on Laravel project. when I use route "/profile' , it doesn't load profile page. it goes to public/profile directory. why does this happen? ...

Is there a more succinct way of retrieving a count of a resource inside a `ManageRelatedRecords`?

I'm trying to add a navigation badge to a record sub navigation item. Inside my ManageRelatedRecords page, I'm doing the following: ```php public static function getNavigationBadge(): ?string {...

Updating from 3.2.83 to 3.2.84 break custom component

So we have a custom component that stopped working between these 2 version. I've attached the Resource and Component: https://gist.github.com/mrleblanc101/714180585a24a82383f8fbd5b0e5dccd...
No description

js date time picker time interval

for a booking use case where only certain times are available. Is there a way to specify available time from 8am to 5pm for example? https://filamentphp.com/docs/3.x/forms/fields/date-time-picker#enabling-the-javascript-date-picker...

Form Wizard multiple models

i have a multi step booking form that touches multiple models. in this case: there's a client model for step 1 and a booking model for the rest of the steps. how would i go about implementing this in the form wizard https://filamentphp.com/docs/3.x/forms/layout/wizard...
No description

Rotate Image Issue in Mobile

I jut upload image from mobile but the image goes to rotate after save or after insert ```php...
No description