Filament

F

Filament

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

Join

MaatWebsite

If anyone is familiar with the Maatwebsite/Laravel-Excel package, I’d appreciate some help.

Grid Columns not responsive

Can anyone see why my form is not responsive... ``` <x-filament-panels::form id="form" wire:submit="check" class="flex flex-wrap items-center gap-3"> {{ $form }}...
Solution:
I guess it's a CSS Grid thing. If you define your grid as "cols: 1" but then have a column with "start 2 / span 2" your grid will be 4 cols wide

Dynamic table record Action label

Hello, I've been trying unsuccessfully to set a dynamic label to a recordAction in a filament resource table. In v3 I could do this easily: ```php Tables\Actions\Action::make('evaluations')...
Solution:
After checking this is not an issue with the framework, because a minimal repository could not reproduce the issue. I checked over my project and remembered that I set up some global overrides when I upgraded to Filament v4 a month ago, using the modifyUngroupedRecordActionsUsing as described in the documentation (https://filamentphp.com/docs/4.x/tables/actions#global-record-action-settings), to ensure table actions labels were using my own label translations. The unfortunate side effect of this was forcing the label for all actions, not just the View/Edit/Delete : ```php Table::configureUsing( fn (Table $table): Table => $table...

Section header action hanging

Hey everyone, Has anyone run into an issue where: You’re using a relation manager table that includes a header create action and a record action like edit. When clicking one of those actions, it correctly opens the resource form modal....
No description

Alpine Expression Error: fileUploadFormComponent when loading page first time

What I am trying to do: Load a form with FileUpload field in an existing Laravel app (using only forms/tables, not the full panel) Using Filament v3 due to conflicting dependencies with other plugins. My issue / error:...

How do I limit the maximum height of the rich editor (TipTap) in Filament 4?

Hey all, loving filament it is such a great environment. I've looked everywhere for the answer here, but cant find anything relevant. Basically I have the RichEditor in a form and Im trying to limit the height of it, else the more your write the more it expands.... but ideally I would want a max height so the content scrolls internally ->rows(10) or ->maxRows(10) dont exist ...
Solution:
Ok after a bit more investigation I figured it out apply the following styles ```...

How to Access Selected Records in a BulkAction::visible() in Filament?

We're trying to achieve the following scenario: ``` BulkAction::make('download_reports') ->label('Download Selected')...

Apex Chart Plugin in FIlament v4

in apex chart plugin, filament v4, in filters, i am not able to control the filters submission and reset as these submit and rest buttons are not there, i dont want filters to apply as soon as i select them

Wizard persistStepInQueryString wrong in v4

Hello, In Filament v3, i had this set on my form wizard ->persistStepInQueryString('pasul')...

Adding a Rich Text editor to a custom resource page

I’m building a custom Filament resource page, and I’d like to include the same RichEditor that Filament uses in forms - instead of a plain <textarea> like this: ``` <label for="description-{{ md5($modelPath) }}" class="block text-sm font-medium mb-2"> Description...

Wizard + Table

I am building a big wizard component and I am in the need for a table in a wizard section, but there's no built in support for that. I don't really see how I could also inject a livewire component in it. Has anyone figured out this? I was leaning onto using the View::make(MyCustomComponent::class) but that leads to an undefined $table error meaning that it has no time to mount or something else is the problem. ...
Solution:
1 - add a table to a livewire component 2 - insert a livewire component into a schema...

How to format non-native date picker state

What I am trying to do: I'm trying to set the value to a Y-m-d format for a non-native DatePicker What I did: I tried to use different state methods to format the date....

is this why filamentphp v3 is slow?

Over 1,099 views on my user page are resulting in an average load time of 3.2 seconds.:squint:
No description

Something changed between 4.1.1 and 4.1.2 which means that my custom rich editor plugins broke

I implemented some custom rich editor plugins as per the documentation at the time in v4.0.x. Everything was working fine in 4.1.0 and 4.1.1, however since updating to 4.1.2 I've found these custom plugins have stopped working. I think an accidental breaking change / bug was introduced? I'm happy to open a github issue with this problem if it makes sense to - I think the commit that has broken things is to do with the custom plugins merge: https://github.com/filamentphp/filament/pull/18049.

repeater action

im trying to user and Action::make() inside a repeater but it doesnt do anything for example: ``` Repeater::make() ->schema([ Action::make() ->action(fn(Get $get) => dd($get))...

Nested HasMany Repeater – deleteAction always receives parent record instead of child

Hey everyone 👋 I have a nested Repeater setup — basically a HasMany inside another HasMany. When I call ->deleteAction($record) on the inner repeater and dd($record) inside the action’s body, I always get the parent record, not the specific child item that was deleted. ...

column page custom

The problem is that I wanted to split a page to show 3 sections in a row, but it doesn’t work, even though it worked for me in filamentphp v3. <div class="p-4 max-w-7xl mx-auto"> <div class="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-6"> @foreach ($subSpecialties as $sub)...
No description

Pass state value inside the createOptionForm

I have a select Component, which has a createOptionForm, I want to pass the value of neighbouring component inside the createOptionForm so I can apply some rules on it ```php Select::make('a_id') Select::make('b_id')...

Weird that my render hook fro appserviceprovider not work in other panel

i have this render hook working fine in admin and user panel but when i add another panel it does'nt center. I don't know what happen. I already install custom them in every panel. FilamentView::registerRenderHook( PanelsRenderHook::SIDEBAR_NAV_START, fn (): string => auth()->check() && auth()->user()->hasRole('Lecturer')...