Filament

F

Filament

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

Join

Testing Custom Header Delete or Save Actions

When testing a custom header action, I'm unable to validate the contents of the modal I'd like to surface to my users. Is there a schema I need to pass in to my TestAction that the header actions are associated with? The Action:...

SpatieMediaLibraryFileUpload not showing preview when set to multiple

"filament/filament": "4.0.7" "filament/spatie-laravel-media-library-plugin": "4.0.7" After upgrading from V3 to V4 the SpatieMediaLibraryFileUpload component doesn't show image preview for exisiting images. The images are save to the database, and attached to the model. This is verified on the Frontend and the TableView also shows the images ...

loading indicator problem in action

if i uncomment second visible loading indicator dont worls also hiding action icon when loading why ?? \Filament\Tables\Actions\Action::make('refresh_pon')...

On Pest 4, filling forms on browser tests for Filament 4

Happy weekend 😎. I've tried many ways to do browser testing for my form (login form as a test), but I cannot make it work. This is my Login::class (that extends base Filament Login::class):...
No description

Setting some fields content in extraItemActions modal

Hello everyone, I have a Repeater component with extraItemAction, and I want to set some additional fields inside action modal. Please look at this code to understand what I need to achieve:...

increase FileUpload Size limit up to 50MB !

What I am trying to do: - i want to increase Filament FileUpload file size to be 50MB but it only allows up to 2MB not matter what i do... What I did: - i have configured my php.ini to allow large files with :...
No description

Hidden class not working on SelectColumn

Hey, I'm working on an app for managing a book business. The BookResource has an AuthorsRelationManager and in the table I have the following column. ```php SelectColumn::make('pen_name') ->extraAttributes(fn ($record) => empty($record->pen_names) ? ['class' => 'hidden'] : []) ->options(fn (Author $record) => $record->penNameOptions()),...

Form schema reuse

Hi everyone, I have a nested resource (PfmeaResource). In this resource I want to use ReplicateAction. If I click on the Replicate button an empty modal appears. In this modal I want to display the PfmeResource’s form, with the record’s datas. If I make the components inside schema() it works, but I dont want to do this way. How can I reuse the form ?...

how to use livewire componet as a custom modalContent

I’m using a Livewire component as the content of a Filament modal (modalContent). Specifically, I’m embedding the Livewire component inside a Blade view, and then passing that view to modalContent(). The problem is: when I click the form submit button inside my Livewire component, it does not trigger the create method in the Livewire component class. Instead, the submission gets intercepted by the Filament modal’s action handler (the ->action() method defined on the modal)....

How to redirect unauthorized F4 admin panel access to homepage in L12?

Hi everyone, I’m working with Filament 4 and Laravel 12. I have a user model with a canAccessPanel() method to control access to my admin panel: public function canAccessPanel(Panel $panel): bool...
Solution:
This middleware works perfect with multi-panel (Created with GTP) 😊 <?php namespace App\Http\Middleware;...

Bug: Multiple RichEditors inside a Repeater cause $rawState type error

Hi everyone 👋, I’ve been running into a consistent issue when using more than one RichEditor inside the same Repeater item (Filament v4). What happens...

mountFormComponentAction no longer works after upgrade to v4

I have the following code for filament v3. It's opening a modal when the type is 'hour'. Unfurtunatly this is no longer working after upgrade te v=filament v4. Can someone please help me? protected static function getArticleSelectionField(): Select {...

Rich Text Editor Headings

Hello, is it possible on new rich text editor to have headings like in last ones up to H6 if i remeber it correectly. RIght now new one provides up to H3.

Incorrect tooltip alignment on Filament v4

As you can see here if a TextEntry or anything that is copyable() for that matter is enabled the tooltip is not aligned properly. This did not work this way in v3. Anyone else having this issue?
No description

Theme issue after upgrade v3 to v4

I have upgrade but I have an issue that the filament page become like the image like the css is gone. I already do 'npm run build' but nothing change
No description

Edit action on RelationManager with pivot redirects to linked Model instead (using pivot's ID)

Hi, I have a relation manager that edits a many-to-many relation with pivot values. The table nicely displays these pivot values and i am able to set these pivot values on the attach action with a custom form. Now i wish to have an edit action to edit these pivot values. The documentation states if the relations are set up correctly, the edit action will edit the pivot values....
Solution:
Add a custom action to update the pivot data: ```php Action::make('updatePositions') ->fillForm(fn (Model $record) => $record->attributesToArray())...

VSCode warning

Any ideas why this warning appears? and how to fix it without changing the IDE settings?
Argument '1' passed to icon() is expected to be of type BackedEnum|Closure|Illuminate\Contracts\Support\Htmlable|string|null, Filament\Support\Icons\Heroicon givenPHP(PHP0406)
Argument '1' passed to icon() is expected to be of type BackedEnum|Closure|Illuminate\Contracts\Support\Htmlable|string|null, Filament\Support\Icons\Heroicon givenPHP(PHP0406)
...
No description

Configure/Disable/Remove default Tiptap extensions

Hi, I'd like to configure or totally remove some Tiptap extensions that come with the RichEditor. ex: I want to disable highlighting, I'd like to customize some keyboard shortcuts, or want to remove any possibility of H1. How would you do that, as the extensions are statically added in forms/resources/js/components/rich-editor/extensions.js?...

Intermittent RichEditor error inside Repeater: Argument #2 ($rawState) must be of type ?array, strin

Hi everyone 👋, I’m running into an odd issue with RichEditor inside a Repeater (Filament v4). My description column is of type TEXT. Most of the time things work fine, but I noticed a pattern:...

ucwords all field values

A lot of my database content is stored lowercase. Is it possible to add something (maybe to AdminPanelProvider::boot() to make all values have ucwords applied to them?
Solution:
formatStateUsing instead of dehydrateStateUsing? ```php TextColumn::configureUsing(function (TextColumn $column) { $column->formatStateUsing(function ($state) {...