Filament

F

Filament

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

Join

Is there a more elegant way to change breadcrump url in nested resource?

I have built this, but I dont like the solution. ``` public function getBreadcrumbs(): array {...

Can not use $operation utility injection in schema closure

I am getting this error: An attempt was made to evaluate a closure for [Filament\Schemas\Schema], but [$operation] was unresolvable. I want to check if the page / operation is an edit or create ```...

Trigger next wizard step

Hello, I am looking for a clean way to automatically trigger the next button on StateUpdate while using Wizard. I did this, but it is not clean :...

Redirect on the same page of another tenant on tenant switch

Hey ! Is there a way when i switch tenant to be on the same page i was but for the selected tenant ? If im on my courses page of tenant 1, to be on the courses page of the tenant 2 when i switch to tenant 2. Instead of being redirected on the dashboard....

Builder inside repeater stopped working since v4

I used Repeater to group blocks into sections in the blog part of my site. Here is the code that worked perfectly before upgrading to v4 : ``` Repeater::make('sections') ->schema([...

Table not Listing All Records

I am trying to create a ListAllVersionsForPage resource so the users can see all Versions for a given page: Currently my code looks like the following. ```php...
Solution:
Figured it out ```php public function table(Table $table): Table {...
No description

MorphToSelect default value value

Is there a way to set a default value to a MorphToSelect field?

Testing relation manager (that is a nested resource)

What I am trying to do: I'm trying to write a test for the relation manager of a resource that is nested. (One project has many assignments). What I did: I wrote a test according to the documentation....

How to refresh the tab component of a relation manager?

I use this example from the docs: https://filamentphp.com/docs/4.x/resources/managing-relationships#customizing-relation-manager-tabs When I create a new record or delete an existing one the badge count does not refresh. I tried to use a closure inside the badge() method and $this->dispatch('$refresh'); inside my action methods but it didn't solve the problem....

how to test outcome of an action?

I can't seem to find an example of how to test an actions outcome after submitting the form. I have an action like this:- ```php public static function applyConfiguration($action): void...

Multi-tenancy avatar

When implementing team avatar like this example , the avatar cannot display on tenant menu, but on profile edit page, it's showing This is how I put inside tenant profile ``` FileUpload::make('image')...
Solution:
I cannot figure out, so I submit a bug issue
No description

Repeater doesn't work inside builder

Hello, After upgrading to v4 some functionality broke and I'm not able find the issue as i am trying to add row in the repeater but it doesnt work, i cannot or delete the repeater inside the builder block otherwise it works fine. It was working fine in filament v3. I discovered that when adding a new builder inside an existing builder, it doesn’t function properly essentially, nested builders don’t work. ```...

Slider not showing up on custom page

Hello, I am trying to add slider to a custom page. The page is to replace the registration under the panel provider by doing ->registration(CreateGuestLoanApplicationIntro::class) But the slider only show up as a gray line as provided in the screenshot....
Solution:
Have you filled the form so it has data?
No description

Proposal: Auto-Save Draft Feature for Filament v4 Forms

Hi everyone, I’m exploring the idea of creating a “draftable form” feature/plugin for Filament v4. The main goal is to allow users to auto-save long forms in the background and resume them later without losing progress. This would be especially useful for forms that have many fields or multi-step workflows. Here’s the concept:...

Select options get irrelevant results in the drop down list

Hello, When using Select::make() with ->options() and ->searchable(), the search works instantly but sometimes shows irrelevant results because filtering happens client-side. When switching to ->getSearchResultsUsing(), the results are accurate (server-side filtering) but the search becomes noticeably slower. ...

Data remove when trigger `->live(debounce: 500)`

I have these 3 fields: gross amount, discount amount and total amount.. after i put a value on gross amount and suddenly change field to discount amount when i put a value in it what will happen is that the value will be removed(due to server request of live function).. is there any to prevent this? calculation is kinda slow..

Undefined variables for $content for checkbox

Hello, I implemented Filament v3 (3.3.37) in my project. I only created Resources so far. Everything works great on local but I get this error on prod only : Undefined variable $content (View: /app/vendor/filament/forms/resources/views/components/checkbox.blade.php) What I tried:...

Event after table items are reordered

Hi guys, Is there any way to run code after the Table items are reordered using the reorderable() method? There are no Model events, since they are updated using the ->update() method....

Filament v4

Why when click actions the modal not displayed on custom page

FileUpload of pdf sets accessibilty to block but image is fine

When I upload an image to cloudinary, I'm able to access it without issue but a PDF file is tagged "Access control Blocked for delivery" in cloudniary console. Is this cloudinary or filament?...