Filament

F

Filament

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

Join

RIch Text Editor Translated Values Issue

Hello, did anyone experience translation issues with RichEditor?
No description

Testing createOptionForm within an action

Whats the recommened way to test a createOptionForm within an action? I had this working in v3 but in v4 I get this error Unable to set component data. Public property [$mountedFormComponentActionsData] not found on component ``` livewire(Devices::class, ['folder' => $this->folder, 'account' => $this->client]) ->mountAction('createDevice')...
Solution:
This can be solved using the new TestAction class introduced in V4. ```livewire(Devices::class, ['folder' => $this->folder, 'account' => $this->client]) ->mountAction('createDevice') ->mountAction(TestAction::make('createOption')->schemaComponent('device_manufacturer_id'))...

Static documentation auth question

Hi, I want to start writing documentation with something like docusaurus or docsify but I don't want it to publicly accessible. Ideally it would be accessible if you are logged in with filament and redirect to login page if you are accessing docs logged-out and redirect back to docs when logged in. I considered multiple options but they all feel wrong....

FIlament v4 Tabs alignment

Why does the tab component alignment change when the ->contained is toggled between true and false? Check screenshots. Is it possible to align that tab component to the left, as it is when it IS contained? Thanks....
No description

Notification not working

hello, notification is not working well, while mail sending and notification stored in database, but not display in bell icon

Managing files / images using S3

My new filament 4.x project is going to be using S3 to store the images / files that need to be used within the app. There's going to be a few fields across multiple resources where I'll want to open essentially a file-browser in the repository where all my assets are stored in order to select which one should be used. Does anyone have any recommendations for a file-manager system or know if it's possible natively? I searched the docs and couldn't find anything immediately, and in here I only no...

Translating

Hello, I am wondering how translation works. For example, how could I translate the "Showing 1 to 3 of 3 results" into a language other than English?
Solution:
It's using Laravel's translation system. You can change the locale in the .env file. If the translations don't exist yet, check the files inside vendor/filament/filament/lang folder

assertCanSeeTableRecords fails on tables with Custom data

Having issues using the assertCanSeeTableRecords when writing tests that use custom data Error: ErrorException: Array to string conversion Location Filament\Tables\Testing\TestsRecords line 29...
Solution:
Yeah so i key valued the arrays in the static data and checked against those keys and it worked so ```...

Best way to reuse Create button (with permissions)

Hello, I would like to display a resource creation button in a custom modal. I want to rewrite as little code as possible and keep the permissions system (filament-shield). ...

Access form field values within saveUploadedFileUsing()

I am attempting to intercept file upload saving using saveUploadedFileUsing(). I need to access some form field values that are part of the same form. How do I do this? I've tried various uses of $set as suggested by ChatGPT but getting nowhere. `FileUpload::make('file') ->directory(fn (callable $get) => 'data/photos/large') ->getUploadedFileNameForStorageUsing(fn ($file) => 'photo_' . uniqid() . '.' . strtolower($file->getClientOriginalExtension())) ->saveUploadedFileUsing(callback: function ($file, $record, $set) {...

Issue template for Filament v4

Is there something like this for Filament 4 to create a minimal example with minimal efford? https://unitedbycode.com/filament-issue...

Resource in view mode, but with "attach" on relation manager

Hello guys, I have my WorkspaceResource that is only in 2 modes: index or view So in view, I would like to be able to see the "ATTACH" button of my relation manager, any idea how can I do that ? Because actually, as it's a view mode on my resource, it show me the view mode of my resource manager as well :/ ...
Solution:
Fixed, using: ```php public function isReadOnly(): bool {...

Adding @mention support to RichEditor – any guidance?

I’m working with Filament’s RichEditor and would like to add an @mention feature (similar to how you can tag users in chat apps). Ideally, storing mentions in a structured way (e.g., ID reference) rather than just plain text. I’m new to Trix editor and the RichEditor plugin system in Filament, and I’m having trouble understanding how the RichContentPlugin system works. Has anyone already implemented something similar or integrated a package that works well with Filament’s RichEditor? Any tips, examples, or direction would be really helpful....
Solution:
Somebody's already working on it. https://github.com/filamentphp/filament/pull/17483...

Create action not visible

I'm not sure if I'm going crazy, but after creating a UserResource, there's no default "Create User" button. I have the same code used for another model, just names are different and it works. Editing/deleting works normally. Policy has correct permissions....
Solution:
Eh I;'m dumb, it just wasn't in the ListUsers page 😂

Caching problems after creating new resources?

What I am trying to do: After creating a resource, the table on the ListResource page should contain the new resource. What I did: 1. I created a resource...
Solution:
It's a Livewire feature – not Filament – and probably not much we can do about it.

Changing <x-filament:button> color on click of the button

Hi folks, I'm trying to build a tabbed Blade-View of some of my livewire components. ```<x-filament::page>...

Shield:generate

I created filament resources with out custom permissions but the generated permissions found under custom permissions tab not in resources plus the resource does not exist in the sidebar menu for all enabled roles even for superadmin.

Filament v4 components outside panel not loading styles (Tailwind v4 / Sail)

I’m trying to use Filament components (<x-filament::button>) in my main app layout (outside of a Filament panel). The Blade renders, but styles are not applied (unstyled button). I included in my layout: ...

rich editor custom block rendering form elements

I am trying to render a contact form on my webpage using the content store as rich editor. I have created custom block for this but the form fields are not getting rendered CustomBlock: (attached as txt) ...