Filament

F

Filament

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

Join

Page without tenancy

Hi guys! I am looking for a way to build a custom page to let the user manage their personal API token. But I can't make it work that it is just "/api-tokens". It is always using "/team/{tenant}/api-tokens/". ...

Table with searchable() in Modal, pressing Enter closes Modal

I have a working table that is searchable in my modal, that is behind an Action. When I type in the search field all is well and the table is filtered, but when I press Enter, the modal closes. Is there a way to prevent this?

combine infolist with sub navigation

I have ViewRecord and comined infolists. but i want to divide the view record into multiple pages view (or details), statistics and more. how to have single tabs for them all. my target: is to have single tabs for view, statistics, ...., relation managers...

Hiding Table Column Labels

Sometimes I use an imageColumn of viewColumn as the leftmost column in a table. For this column I don't want a label. I noticed when setting a label with an empty string such as ->label('') the label is not shown however this automatically shows the column toggle menu (top right of table), which seems like an unintended side effect or maybe even a bug. I can properly hide a label with: ```php...
Solution:
@bionary Should be fixed with this PR: https://github.com/filamentphp/filament/pull/18386

Laravel Echo v4 native integration & Export actions

Hello everyone, I use Filament for the admin panel but also in custom components, and have a heavy use of Livewire navigate accross my app, so it behaves a bit like a SPA. The problem that I have, is when I'm trying to set up an Export action on a table, the job is passed to a worker, anda file and a notification is generated but both never gets passed to the user....

Why some classes(hover) in extraImgAttributes() don’t work in ImageColumn?

Hey! I’m using Filament v3 and trying to add hover effects via Tailwind. The bg-gray-200 works, but hover:bg-gray-600 does nothing. what is the issue and how can I fix It?...
Solution:
The class probably doesn’t exist in the theme. If you want to use classes like this you’ll need to create a custom theme and include the file in the TW content to scan or safelist the class so it gets compiled into the theme correctly.
No description

Disable sanitazion in richcontentrenderer

How do i Disable sanitazion in richcontentrenderer
Solution:
->toUnsafeHtml()

How to Make Filament’s DatePicker Select Only Month and Year

Hey everyone! 👋 I’m wondering if it’s possible to use Filament’s built-in DatePicker field but restrict it so users can only select a month and year, without choosing a specific day....

Is there any way to have public access panel with multi-tenancy?

I could do this without tenancy enabling. But when I add $panel->tenant(Tenent::class) and browse with tenent slug eg /public/a-tenent-slug/ It just return 404 .

Dynamic Tabs with Table Widgets in Filament v4 using Sushi Model — Data Loads Only After Second Clic

Description: I’m migrating a working FilamentPHP v3 setup to v4, and I’m running into a problem when dynamically rendering tabs with table widgets using data loaded from external WooCommerce APIs (via the Sushi model). Here’s the scenario:...
No description

livewire component

in Filament v3 how send arguments to livewire component
Tabs\Tab::make('კავშირები') ->icon('fluentui-plug-connected-checkmark-20') ->badge(fn(Get $get) => count($get('objects') ?? [])) // ✅ dynamic counter...

Filament V4 HTML Editor

Is there a way using RichEditor or MarkdownEditor in order to be able to see the source code, but as well the preview? In V3, I used tiptap editor package, but it is not compatible with V4. Thank you!...

https://filamentphp.com/ only by vpn

I have been countering this issue for few weeks where I have to use a VPN to access the website. I'm from north africa....

$get utility in infolist

I have an infolist which consists of a Tabs component with Tabs, as would be expected. In one of these Tabs, I would like to put a non-dehydrated Select and some Action buttons, and the function for the Action's action() would need to access the value of the Select. I've tried to inject the $get utility in the Closure, but it's returning null, even with $get('*'). After some debugging, I know that the $get's $component property inside the Action's Closure is actually the parent Tab, since clearly the Action itself isn't a Component, doesn't use the HasState trait and doesn't have access to the makeGetUtility() method. I have excluded the Select being dehydrated(false) as the cause, since elsewhere in my Panel I've been able to $get() a Select's value even though it was dehydrated(false) (unless that behaves differently in infolists? It's all Schemas in v4 afaik...). My suspicion is that the Tab maybe behaves differently than the average Component when $get is invoked? I'm not sure how to go about retrieveing the Select's value inside the Action's action()....

How to block using of decimal numbers in TextInput

Hi, when using a TextInput, how can I block that the user can fill in a decimal number?

MorphMany and RelationManager wit related Resource

Hello together, Currently I struggel with a relation manager. I have multiple Services (like Wordpress, Laravel and more). Those services can be attached to multiple domains. On the domain name is a unique constraint to make sure there are nu duplicates. I ccurrently try to use the relation manager like this: ```php...

Table Repeater doesn't look like table

```php Repeater::make('groups') ->orderColumn(false) ->hiddenLabel() ->table(fn() => [...
Solution:
It looks like your container isn’t wide enough to display the table. Core switches to a stacked view below the lg container query. If you need it as a table below that point you’ll need to add the smaller size in a custom theme.
No description

Filament Checkbox Column toggle prevent query update

Hello friends i have checkbox column and i want to prevent the checkbox from firing when a condition is met. i tried to return false but didnt work is there any way to achieve this. thanks ``` CheckboxColumn::make('toggle')->label('show home') ->beforeStateUpdated(function ($record, $state) {
// check with db based on a condition and terminate operation...

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