Filament

F

Filament

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

Join

Table expandable content creating whitespace

Hi, I'm trying to create some expandable content. However the upper row, is not not taking the full available space anymore, and I have no Idea how to fix it. ```php ->columns([ Split::make([ Tables\Columns\TextColumn::make('account_ref')->label(__('Account Ref')),...
No description

Preventing StatsOverviewWidget from refreshing after every table action

What I am trying to do: I want to show a custom ContactStatsWidget (extending Filament\Widgets\StatsOverviewWidget) in my resource page footer alongside my main table. It should only query once when the page loads, not every time I run an action on the table (like adding a guest). What I did: ...

panel Appears Unstyled After Adding Custom Theme with Vite

Hello , I'm facing a specific issue while trying to apply a custom theme in Filament 4.x on an existing project and would appreciate some guidance. The Problem...
Solution:
Thank you so much — that was exactly the issue. Adding @tailwindcss/postcss to my postcss.config.js fixed it
No description

Filament Import Fails , Using `Admin` Model instead of `User`

--> Full Issue description in the text file in comments Brief: What I am trying to do: - Import a CSV into a Filament resource via ImportAction (queued ImportCsv job), updating existing DailyGift rows by day....
Solution:
After some research i have solved this problem using : ```php // AppServiceProvider use Illuminate\Support\Facades\Route; ...

TipTap merge tags with HTML

Is it possible to put HTML in the merge tag replacements for the tiptap editor? Seems like it's always escaping whatever I put in.

Can dashboard page react to filters?

Hello, I am currently building a custom dashboard that has filter, with use HasFiltersForm; and have added some simple toggle buttons to the filter ("today", "last 7 days", "last 30 days"). that sort of thing. The widgets are reacting with the filter with the use of use InteractsWithPageFilters; However i want to display some basic text to let the user know the date period that they selected. Since the dashboard has no blade file (that I know of), is there anywhere I can hook this information? besides putting them on individual widget itself which will clutter it with dates....

`->in()` validation doesn't seem to work with Select

From what I can tell, the ->in() validation doesn't work with select, unless there are "changes." So if you open a form and the select input already has an option, this will mean there are no changes and in() will fail. You have to reselect your option by clicking a different one, then the original again. This seems to defeat the purpose of in() validation ```php...

Tabs in TableWidget

Hi everyone! I was working on a TableWidget and wanted to implement the Tabs functionality similar to what's available in ListRecords. After some digging, I realized that TableWidget doesn’t support Tabs out of the box, so I had to do quite a bit of work—exploring traits and manually implementing the necessary methods. It took some effort, but I finally got it working! However, I have a question:...
No description

Trying to understand the layout system.

Hey While trying to update a plugin I ran into a layout issue. I want my Field to be full width but can't make it happen. My code is like this: ```php...
Solution:
->columnSpanFull() on the first Grid
No description

columnSpan on filtersForm() in Page shows no effect

When defining the ->columnSpan() on a filtersForm in a custom Page show no effect in screen sizes lg an higher. The Filter is always 1 column in width.

relationship() on Repeater disables reorder

Anyone knows for what is that line of code? https://github.com/filamentphp/filament/blob/caa8ce3daeadce9629afc1c22eea7f90d65aa681/packages/forms/src/Components/Repeater.php#L1005 If I set ->reorderable() after ->relationship(), everything works fine (ofc. with setting ->orderColumn(), but I set reorderable() before relationship() and saw that reorderable was disabled....

Throttling navigation to prevent the browser from hanging

Hi all I have noticed since upgrading to V4 when I am cycling through pages, albeit in quick succession I am being presented with the following console error in Google Chrome Throttling navigation to prevent the browser from hanging. See https://crbug.com/1038223. Command line switch --disable-ipc-flooding-protection can be used to bypass the protectionz I have read about this before but it didnt seem to affect me in v3. V4 however I am noticing it. ...

ImageColumn / DefaultImage not showing

Is there anything I am doing wrong? The default image does not show up: ImageColumn::make('thumbnail_image_path') ->visibility('public') ->label('Cover')...

Sidebar z-index issue.

Anyone can help to fix this?
No description

Filament 3->4 upgrade checker

Hi. I'm fooling around with upgrading from 3->4 and needed a thing to check namespace changes etc so I had Claude cook up this script. Posting in case it's helpful [Link removed - there are offical scripts!]

Naming advice for CustomEditPage

A quick naming question, hopefully someone's got some real experience doing this. I'm making a totally custom Edit Page for a resource - entirely disregarding the built in use Filament\Resources\Pages\EditRecord; Would you say it's good practice to call it CustomEditPage rather than EditPage?...

Resource doesn't show in navigation

I have migrated from V3, all seemed fine except none of my resource show in the navigation - created a blank one, same result. ```php <?php namespace App\Providers\Filament;...

Validate Form with array of rules.

Basically, I have a concrete class (SummerchildCareForm: https://codeshare.io/axgzWd) which build the schema or form fields with nested layout. This concrete class extends the base/abstract class which contains the traits and little common logic. For now I have only one SummerChildCareForm class which has a method getSchema, and also a static method "public static function validationRules(): array {return ['first_name' =>['required'...]...];}". I am rendering this form on the frontend side with Livewire, https://codeshare.io/2p7zbx The form get renders and when i hit the save changes button I even get the result but the validation doesn't work... ...

I can't select a value from the toggle buttons

my code: ```ToggleButtons::make('available_days') ->label('Dias Disponíveis') ->helperText('Selecione os dias disponíveis para o profissional.') ->live()...

V4 button text colors

As far as I understand, button text colors are generated based on the background color. But this results (in my eyes), into uggly combinations like this. Any chance to fix this?
No description