Filament

F

Filament

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

Join

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

Lost in docs

Hi, I am totally new to filament and livewire but I have a little bit of experience in Laravel. I am just trying to learn filament v4 by creating a project, but the docs are seemed not-so-helpfull. I'm currently trying to add a form to a custom page, but I do not even understand where to put my code. Even if I simply copy-paste the code I saw in web, an error occurs. Am I looking at the wrong page for learning this (https://filamentphp.com/docs/4.x/navigation/custom-pages) ? Or should I start with Livewire documents? Sorry for poor english and thanks in advance. ```php...
Solution:
Pages are livewire components. You can use this section to add a form to the page

Access current resource page from widget

Is there a way to access the current resource (e.g. ListRecords) where the widget (Filament\Widgets\StatsOverviewWidget) is included so i can call it like $resource->doSomething()?
Solution:

Dynamic Fields in a Repeater Table

Hi! I Know everyone is busy so I'll try my best to keep this short. I have a Repeater that is configured to show as a table. ```php...

Need help with updating MoneyInput

I want to get dynamically my currency. Right now i do it like this static: ``` MoneyInput::make('credit_limit') ->label(__('admin_panel/account.form.label.credit_limit')) ->inlineLabel()...

V4 Custom data in a RelationManager

I want one of the tabs of my User's relation tables to use custom data. I assume I need to use a relation manager for that, but how do I use custom data in a relation manager? I tried ```php class ResultsRelationManager extends RelationManager {...
Solution:
There's not much difference.

nested modal action not working in v4? even bulk action.

Hi. I have a action modal and show table view with schema. in this table view, when I try with bulk action schema not appear modal in this.
Solution:
after upgrade to v4.0.2 it's working well . thanks
No description

How to handle custom Repeaters relationship?

I have a custom repeater and I am not sure how to handle the relationship. In the orginal one you could just pass the relationship but I'm not sure how to implement it for custom repeater. ```html...

Repeater with ->table( is not showing as table

I tried to replicate the example from the docs and want to display a repater table in a form. The following code shows a regular repated form - not in a table. ```php class ContainerForm {...
No description

$component->onColor(Color::Pink) broken in V4

In V3, I was able to pass the Color enum into the onColor method, but this is throwing an errors in V4. The error is Closure|string|null, array given, which makes sense as the enum value is an array. In V3, the onColor method was public function onColor(string | array | Closure | null $color): static It would be nice if this worked in V4....