Filament

F

Filament

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

Join

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

displaying data on doughnut chart whithout need to hover on

Hi everyone, i am asking how to display data on chart without hovering, thank you
Solution:
probably an option that you need to pass in the chart options.. This is default in apexcharts (just a comment..) https://filamentphp.com/plugins/leandrocfe-apex-charts...

How to reorder the navigation

Hi i have a problem where i can not move mine resource navigation link under the Group, i used
public static function getNavigationSort() :?int
{
return 9;
}
public static function getNavigationSort() :?int
{
return 9;
}
` The last link in the group has this value ```public static function getNavigationSort() :?int {...
Solution:
Navigation items are sorted by group first and by item second. Means you cannot put an item without a group below a group

I can't get the icons to work this way when using Clusters

This is an example from the website: https://whizzy.dev by @Zep Fietje How could I do this without any hacks?...
No description

Best option to generate translations

Changing the locale in the app config seems to be good enough but some translations such as form errors are missing. I found this which seems to generate translations for all locales https://laravel-lang.com/introduction.html is this the standard package or are there better options?...
Solution:
I think Laravel Lang is pretty much the standard. Form Validation is part of Laravel that's why it doesn't come with Filament translations

Is it possible to apply a class to a specific page? So I can target some css to only that page?

I am using panels and I have a relationshup manager table which I would like to apply some custom css to but I dont want to override every RM table on my app. I've tried to look through the source html and I cannot see any unique identifier for that page....
Solution:
Check the classes on the Page: E.g. from th demo: .fi-resource-shop-orders...

Tab Badge not updating

I have a tab in ListBlogPosts where i have two tabs with badge that has count. I want the count to be dyanamically updated based on my active filter. Sadly, the count does not update. Probably the code to generate the badge does not run on filter change. Is there a way to achieve it? ```php...