Filament

F

Filament

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

Join

How to handle custom complex queries in Filaments table

I have a sample query and I wanted to integrate this result and displa it to the table, I also want a search capability. ```php group() ->users()...

Help on setting up multi-model Resource management through single page

Hi guys, I'm kinda new to Filament and Laravel and I am trying to put together an application that can be used to manage appointments for companies, to accomplish this I am trying to setup a single Resource page to manage a Model and its underlying relationships (see screenshot and description below) Description of the class-diagram...
No description

production.ERROR: Livewire encountered corrupt data when trying to hydrate a

I have This Log After Installed self hoster ssl + reverb config using nginx full log [2025-05-13 19:24:00] production.ERROR: Livewire encountered corrupt data when trying to hydrate a component. ...

badge on the hamburger menu ?

Anyone point me to a solution for putting a badge on the hamburger menu button that appears for the smaller viewports ?
Solution:
Solution I went with: In the panel: ` ->renderHook(...

How can I conditionally show a confirmation modal during a resource edit form save.

Hello everyone, I am struggling with this use-case: What I am trying to do:...

Reset only one form field into it's default state

Hi! I need to manually reset state of one form input. More specifically inside afterStateUpdated, I want to reset input named "type". Anyone knows how to achieve this?...

How can I check for any unsaved changes in the edit form?

I want to track when there are changes in the edit form. If no changes are made, I want the button to be disabled.
Solution:
What about: wire:dirty.class="enabled-class"...

How to handle the deleteAction for the file-upload field

I'm looking to ensure that when the user deletes a file attached to a posting, that the corresponding uploaded file is also removed. There doesn't seem to be anything in the documentation on this, and chatGPT is hallucinating with an incorrect method that does not exist. I am handling deleting the associated files when the post is deleted by overriding the boot/deleted method, but am unclear on how to handle it at just the file level.

Won't Work the defaultItems(1) on Repeater

i tried the defaultitems on a Repeater but it wont work why?
No description

table row background color & clear all filters button

Hi there. I need to things: 1. i want my first 4 records in the table to have green background and the last 4 records a red background. How can i achievie that? ...

Import action afterCreate / afterSave not working to get parent ID

I need to create relationship data after the model created new data. But it doesn't work when I use afterCreate / afterSave, target_id is null in rate_card table. ``` class SiteFullImporter extends Importer {...

How to change resource label dynamic

Hi, I want change resource navigation label dynamic. How I can do that? I try this: ``` public function construct() { static::$navigationLabel = ('positions.resource_navigation_label'); }...
Solution:
```php public static function getNavigationLabel(): string { //
}...

defaultSort() with an enum

Using defaultsort() on an enum column sorts as per the enum value...but the user would be expecting it to sort on the human readable value.... is there a way of overcoming this ?...
Solution:
Ok, here is a solution, feels a bit hacky, if anyone has a better one....feel free to tell. In the enum, add a reverse label case method: ``` public static function sortCaseSql(string $column) : string...

Change FileUpload Download and Delete icons

I need to change both the Delete and Download icons of the FileUpload component and also add text to each for accessibility purposes. Is this possible? Thanks
No description

How to implement specified action/button in laravel filament forms

What I am trying to do: Im trying to add a calculation button for my recalculate What I did: im trying to make a button for my form that have a recalculate function My issue/the error: it keeps bugging saying that the button is doesnt exist or its filament method/class is undefined...
Solution:
nvm it been solved i should have put it in tables in actions

How do I show modal on press edit?

How do I edit displa the modal and edit the department name on press action button -> edit ? Is this possible in Filament?
No description

Refresh Dashboard Widget

How would I go about doing that my dashboard Widget refreshes periodically (eg. every 5 Minutes). Is this even possible?...

header action opens a create modal, followed by a confirmation modal

Is it possible to show another prompt saying Are you sure you want to add this category? after clicking Save?
No description

custom filter blade - cant figure out how

I have a custom page with query logic, and ultimately ends up in my view like this ```php <x-filament-panels::page> <div class="mb-5 grid grid-cols-1 gap-4 sm:grid-cols-2">...

Multiple Table Pagination And Sorting

Hello, Is there a way to paginate and search for multiple tables on page but to have different query strings? Example...