Filament

F

Filament

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

Join

High client side memory usage over time

I have a filament resource that has quite a few relations, so the data being rendered at each poll/refresh is maybe the culprit here. But I am seeing memory usages of a few GB's where the highest I have knowingly gotten to was 4 gb, so now I am wondering if it is normal for filament resources with tables that poll the database every 5 seconds, to take up a lot of memory over time? And are there ways to avoid this from happening? I would estimate that it accumulates 100 mb every 5 minutes when the tab is active and not being used....
No description

Issue With Custom Filament Page Route

Hi I have created custom Filament Page ``` <?php ...

Section use by default with column 1 in all resources form scheme

how to use by default in all resources scheme Section by default ?...

Livewire - Value will not be handed over to Filament Custom Form - pls explain

Hello Guys, we are trying to get NativePHP Camera Function working with Livewire and Filament V4 in a custom component Environment:...

Database Notifications Event Dispatch

Hello, I was wondering is there event dispatched when filament is sending database notifications? I was looking for to catching an event with Livewire.on('***')...

Filament v4.1 resources structure problem?

Problem: I'm using Filament v4.1.10, but when I run php artisan make:filament-resource Customer --generate, it creates the old v3 file structure instead of the new v4 structure. Expected behavior (v4): app/...

How can i override fi-dropdown-panel css

Hello, I have a case where tenant names are kinda long and doesn't look nice in tenant dropdown select menu i tried to put in my custom theme.css...
Solution:
this works ``` @layer components { .fi-tenant-menu .fi-dropdown-panel {...

Filament v4 ->state uses cached values?

I upgraded from Filament v3 and noticed some behaviour. So i have this piece of Code. We were using ->getStateUsing in v3 but ->state ist in de API doc so we changed it. Under the hood it is the same so it doesnt matter anyways. ```...
No description

TextColumn depending on database value....

Should be a simple one. I have a database table column "status".. that statuses are encoded as 1,2,3,4,5 and stored as an int. On the Form used to create the table row, I have a Select:: thus: ``` Select::make('status')...
Solution:
I'd use mutators/accessors to centralise that transformation

Why am I getting dark mode classes when I've disabled it

->darkMode(false, true)
->darkMode(false, true)
In my panel provider, I've set it to false, but im getting the dark mode css classes and it's messing with my view. What am I missing?...
Solution:
Okay, so I've had to add this to my tailwind config ```js darkMode: 'false', theme: {...
No description

Collapse NavigationGroups by default when used as ENUM

I decided to use the NavigationGroup enum, which allows me to do this on my resource. protected static string|UnitEnum|null $navigationGroup = AdminNavigationGroup::ProductsServices; But how do I make the group collapsed by default ? I tried to implement Collapsible from the Filament\Support\Contracts\Collapsible but a quick dd showed the functions were not called for NavigationGroup....

Displaying subrows of a row in table (nested)

So, i have a table, it display per week basis, with date showing on header. Now, what i need, is to display subrows in rows, i want for example TABLE:...

Custom permission use filament shield

I am unable to create a permission to attach a new resource to a specific resource in filament v4. I have tried using getPermissionPrefixes() in resource ```php public static function getPermissionPrefixes(): array { return [...

disableOptionsWhenSelectedInSiblingRepeaterItems only for specific item not working

when choosing older sibling it still disabled, i want only father and mother. is it wrong? if it is how to achieve that? ```Repeater::make('parental_family_members') ->hiddenLabel()...

Can I use two repeaters with the same relationship to manage a single relationship in Filament 4?

Tab 1 Repeater::make('riskRegistrationsInput') ->relationship('riskRegistrations') ->addActionLabel('Add Penyebab Risk') ->label('')...

debug

Set Debug in Filament admin. Hi. Filament v4 follows whatever set in APP_DEBUG in the .env...

[Table] [Filter] Is there any way to reflect the filter into query url?

As title, similar to v3 feature: https://filamentphp.com/docs/3.x/tables/advanced#query-string, i am required to reflect the filters onto URL query string, but there seems to be no configuration nor there is any documentation regarding this