Filament

F

Filament

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

Join

How can i override a resource of a package ?

I created a resource that inherit from the package resource but nothing changed.

Exporting by command line

Hi! Is it possible to make a export command with the Filament Excel exporter through the terminal? I can't really find anything about it.

Laravel 12, Livewire starter-kit, Filament PHP

Good day all! I've spent ages working on a system whereby I'm using Filament PHP in Livewire pages and to great effect. However, has anyone yet used the L12, LSK and successfully been able to add in a form/table (just a table is enough), without seeing the screen and table skewered and broken?...
Solution:
Not really possible at the moment. Filament v3 is locked to tailwind v3. The starter kit uses tailwind v4.

Is it possible to pass the parent record to the gate of a relation manager?

I have a Work Orders resource and on the edit page of each is a relation manager for Work Order Notes. I have policies for both models. I only want to allow a work order note to be created on work orders that the logged in user owns. The problem is that Filament checks a create method on the WorkOrderNotePolicy that doesn't pass in anything other than the user. Eg. ```php...
Solution:
This is what I ended up doing on the relation manager. There are several canAction methods on the relation manager and I override the one's I need. Not sure if this is the best way to do this though but it works. ```php protected function canCreate(): bool {...

Conditional actions on table columns

Hi all! I have a table, along the Y axis (rows) is a list of locations, and each column along the X axis is information from different relations to that Location (complianceA.name, complianceB.name). I want the ability when clicking on the column, to either open an edit modal for the relation if it exists, and to open a create modal for the relation if it does not exist....

Open relation manager on table action

Is there a way to open a relationship management modal directly in the filament table? Without having to click edit the record and click add relationship.

Repeater custom create function?

I can only seem to find docs on how to mutateRelationshipDataBeforeCreateUsing , but not a way to do the actual insert into the database ourselves, is this possible?

Problem with Custom rules - upload file

If I add required outside, it automatically reports an error that no file is loaded even though I have loaded it. If I put it in fn, it will skip the fn without loading the file. So where is the problem I have? FileUpload::make('cover_image') ->placeholder('ここをクリック・または JPEG ファイルをここにドラッグ&ドロップしてください') ->disk('public')...
No description

How to keep a modal open after submitting

in a resource list page i create a button that user can input a form and submit. my goal: when submitted i want the modal to stay open so user can submit another one. what i did...

replaceMountedTableAction problem

I have two identical table row actions that allow me to navigate to the next row via modals. The only difference between them is the action name. Initially, when I load the table and click "Finish," a modal opens as expected. From there, I can click "Submit and open next row" to open the next modal, and everything works fine. So I switch to the other modal every time. However, when I switch to another tab (which uses advanced tables via PresetViews) and then try to use "Submit and open next row" again, the second modal does not open. If I refresh the page, it starts working again....

Markdown Editor not loading

sometimes not loading try it protected static bool $isLazy = false; In panel RelationManager Edit
No description

How to Add Custom Dropdown Filters Inside Table Headers in Filament?

I'm working on a Filament admin panel and need to add dropdown filters inside the table headers, similar to how the search bar appears inside the column. 🔹 The client does not want to use the default Filament filters. 🔹 Instead, I need an individual dropdown inside each column header for filtering. 🔹 I can't modify the default admin panel code directly....
No description

Hide Create an action in the form of a filament

I have a code like this 'use HasAvailableLeaves; protected function getFormActions(): array...
Solution:
I have succeeded, currently I am using code like this ->hidden(fn ($livewire) => (SheetLeave::where('user_id', $livewire->data['user_id'])->first()?->available_leaves ?? 0) === 0) but will this cause any problems...

Table filter

hello everyone, currently i have a project running on filament v2, as i checked the v3 doc there is a method:
deferFilters()
deferFilters()
that allow user click the apply button to get the filter to work. is there any workaround for v2 to have this kind of functionality. I really appreciate for the help.

can we hook configureUsing after render .

Is there any way we can use configureUsing after render table for example ``` Table::configureUsing(function (Table $table){ $table->paginated([5, 10, 25, 50]);...

filtered colum value

I have table like this. I implement tahun and bulan filter but the timelines_rencana_count, timelines_realisasi_count did't work. What i miss?
Solution:
Solved. need to implement modifyqueryusing ->modifyQueryUsing(function (Builder $query, $livewire) {...

Changing the default ui-avatars.com colors

How would I go about changing the color scheme of the default ui-avatars? We are currently using background=0D8ABC&color=fff for our users and would like to match that for the default ui-avatar. Currently getting around it this way. But is this the correct way of doing it?...

form->fill()`with Selects?

Anyone know how to use $this->form->fill( [...] ) with Select fields? I need to automatically select something from the dropdown while inside a form action function....

Strange Issue with Filament and API Routes

Hi, I have encountered strange issue when i update profile password and press button in UserMenu to signout i get Route login not defined error ```...

ask about how use this package mohamedsabil83/filament-hijri-picker

can any one help me how to use this package composer require mohamedsabil83/filament-hijri-picker...