Filament

F

Filament

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

Join

Filter Widget Chart from form on custom page

Hi, I have a filter form (for child and year) and some charts. How do I link them so the charts Widget change after the user makes a selection ? and how to attach the widget to my custom page?
No description

Is it possible to reorder items in a Repeater when using the table() layout?

I'm using a repeater with table() columns, and I would like to allow users to reorder the rows (either by drag-and-drop or with up/down buttons). I can't find documentation confirming whether reordering is officially supported when using the table layout....
No description

ExportAction exporting not all rows?

Hi, I have very strange behavior on PROD server. When I filter data and I download file, file contains less rows that filament says in notification (ex. 2500 rows) . When I try again to export, I have again different number of rows but I never get full number of rows... And sometimes header is missing. On local machine export works fine... Jobs are running via supervisor but I think that this is not issue beacuase when I run manually queue via artisan I have same thing. SQL query for export is OK. What I missing? PHP configuration? ...

Uploading message on additional save button

Hi there! I added a second save button in headerActions: ```php...

laravel cloud + filament v4 + shield plugin

how to run the shield installation in laravel cloud deployments tab Tia 🙂

Help: How can I keep the parent modal open when opening the child modal?

I have a parent action that opens a slide-over. Inside that slide-over, a Section has a header action that opens another slide-over. When I open the child slide-over, the parent closes. When I close the child, the parent reopens. ```php public function viewAction(): Action {...

v3 making a toggle all on/off on toggle columns

v3 making a toggle all on/off on toggle columns
No description

Single choice toggles

Hello everyone! I am trying to implement single choice toggle. A bit of context I have product edit page....
Solution:
Just make the toggle field ->distinct() in the repeater. Then it will throw a validation error and the user has to fix it.

Method Filament\Schemas\Components\Wizard\Step::skippable does not exist.

I don't know if this is a bug, or simply a mistake in the docs. https://filamentphp.com/docs/4.x/schemas/wizards#allowing-steps-to-be-skipped When you chose to conditionally make a wizard skippable, it's clearly showing here that the skippable method is applied to the Step class of the Wizard. However the skippable method only seems to be available on the Wizard class. ...

Is it possible to customize the options of a MorphToSelect?

The docs say, I can use allowHtml() on a MorphToSelect (https://filamentphp.com/docs/4.x/forms/select#handling-morphto-relationships) but how can I set the customized options to the key select?
Solution:
got it. It is possible by adding getOptionLabelFromRecordUsing() to every MorphToSelect\Type::make() entry inside the types() array 👍

Fileupload bug, images stuck on livewire-tmp

Below is a basic FileUpload form for an image that uses s3 storage. I tried using both Amazon s3 and DO s3 but the problem seems persistent specially when uploading multiple files. The images remained stuck in livewire-tmp folder and not moved. Sometimes all are properly uploaded to img folder but most of the time there are missing upload like 1 to 15 images missing. I searched all over for a fix and found others have the same issue as well with the fileupload. Here's my basic fileupload that accepts maximum of 50 images...

how can i render widgets manually in dashboard pag

hi I am trying to manually manage the dashboard page But how is this possible? I created the dashboard page and I am trying to render the page manually in the blade But my problem is that Filament is automatically rendering the widgets...

How to correctly focus on the filament's MarkdownEditor?

This has been bugging me for quite awhile. I do not know how to have the focus on aforementioned, unless I manually click on it. Things I have tried: add extra attributes x-init => $el.focus(), $el.click() (to immiate that I manually click on element), also doesn't focus, using ->autofocus() on the MarkdownEditor itself, also no effect (this doesn't work even when I use autofocus on the ->schema() elements of the Action, since I would like to autofus a second element instead of first element)...

What should I do with the old resources/views/vendor/filament-panels when migrating to 4 filament?

What should I do with the old resources/views/vendor/filament-panels folder when migrating to Filament 4? I have a fairly large project, and the resources/views/vendor/filament-panel folder contains a lot of custom templates. Different sources say different things about this folder. For example, GPT says to republish it and replace the old templates with the new ones. Grok says this folder shouldn't exist in a project with Filament 4....

Use TailAdmin in Filametphp

Hello everyone! Has anyone been able to import the Tailadmin (html tailwind template from tailadmin.com) design into Filamentphp? Please can you share your advices or success story with it if you have?...

$this->mountAction() fails to find and open the action

I have a section's header action, which is nested in the tabs. ```php Tab::make('test_tab') ->label('Test') ->schema([...

Use a different color for profile header action button vs confirmation dialog

I've got some really nice black on white background buttons in my navigation (see attached photo). I need to add a confirmation dialog to one of them. However, the confirmation dialog uses the same styling and looks horrible (see attached photo). Is it possible to have ->color('secondary') on the button but ->color('warning') on the dialog?...
Solution:
<?php namespace App\Filament\Resources\UserResource\Pages; use App\Filament\Resources\UserResource;...
No description

Livewire update calls

Livewire update seems to call multiple times on a single page and research suggests it's not supposed to do that. This is causing overheard on servers using it. Is this normal with filament?
No description

Navigation Groups and enums

In Filament v4, the navigation group can now be a UnitEnum (docs). So I created one like this: ```php enum AdminNavigationGroupEnum: string...

TypeError: Cannot read properties of undefined (reading 'uri')

Getting this error on production server, unable to login. VM1803:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'uri')...