Filament

F

Filament

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

Join

Is it possible to force refresh Form programitically?

I have a Section which the schema of it dynamically generated when the state of a "Select" component changes. ```php // Select Component Select::make('form_type_id')...
No description

The Shiled Roles Not work with Activity Log

I'm using plugin "pxlrbt/filament-activity-log": "^2.0" and "bezhansalleh/filament-shield": "^4.0". Why The Shiled Roles Not work with Activity Log?...
Solution:
You probably haven't applied the model policy to the package model, they are not applied by default when using vendors.

Filament form can view related records, but isn't saving changes

I am looking at the parent record of a has one relationship. Filament correctly loads the related data into the form. When I save, Filament updates the resource (parent record) but not the related record....

v3 to v4 - Invalid left-hand side in assignment (at rich-editor.js?v=4.1.9.0:10:18777)

Solution:
Well, I manually removed the -sm, then ran php artisan filament:assets again, and then build, and it works now... Some caching issue, I guess... 😵‍💫...
No description

formActionsAreSticky seems not to be working as expected

Adding public static bool $formActionsAreSticky = true; to create page seems not to enable sticky form actions. ...
No description

FusedGroup visual inconsistency

So i noticed that if you use FusedGroup insde a Section the background color of the other inputs do not match which creates visual inconsistency (my guess it's caused by box-shadow). It can only be seen when using the dark mode. I recreated it on Filament v4 DEMO repo at app/Filament/Resources/Blog/Links/Schemas/LinkForm.php...
No description

Non-Simple Profile page does not work in MultiTenancy Bug - Need Advice For Best Solution for PR

When using a profile page (custom or default) on a panel with Multitenancy using the non simple layout it throws an exception. I want to submit a PR to fix this but I have a few different ways I can handle this and I want some feedback on which I should do. In my Panel Provider class I have this: ```...

How to translate buttons?

Hello, i would like to know of its possible to translate those buttons. I use this for changing languages. https://filamentphp.com/plugins/bezhansalleh-language-switch...
Solution:
Yes. Japanese locale code is ja not jpn
No description

Custom page render Markdown

Hi guys! I have an issue of rendering a markdown text on a custom page which is in the end a Cluster. Any solution? I've tried via: {!! str($markdownContent)->markdown()->sanitizeHtml() !!} but nothing works at it should format the markdown....

How to Fix iOS Browser Limitation Stopping Background Playback in a Laravel Music Player

I have a music player built with Laravel. On Android, when the screen is locked and a song finishes, the app automatically plays the next track — it works perfectly. However, on iPhone, when the screen is locked, playback stops at the end of a song and doesn’t continue to the next one. Once I unlock the screen, playback resumes normally. It seems that iOS is more restrictive. Is there any way to make the iPhone version behave like Android? Automatically playing the next song even when the screen is locked? It’s really annoying....

Binary UUID

Has anyone used binary UUIDs as primary keys in Filament? I can't get mine to work. My issue right now, is on Edit Page to save a form or delete the record, I always get 404....
No description

Resource link for EditPage - force page rather than modal

I have a rather funky listrecords which effectively groups a lot of records into a single row/column. My DetailSummary extends EditRecord and the problem is that when I click the link, it opens a modal with a different (default) schema/form, rather than opening the custom page I have built. I noticed in this page https://discord.com/channels/883083792112300104/1428162347796664501/1428377033922056202 that you can define the schema - but I am unable to use Actions as I need to return html. Here is what is really strange; If I remove the edit page from the getPages() in resources, the link loads SummaryForm schema in a modal. If I leave the edit page in tact, even though it isnt called, the detail link works perfectly fine and loads the page rather than a modal!? ```...
Solution:
Yes. That's what I explained. You have a form() on the resource and an EditAction so Filament assumes you want to use that form. Opening a modal is a JS event while going to a page is a link. The JS event even fires when you click a link in that row.

Merge tags not triggered in custom page

I have built a custom page with Filament 4.1. The page lists some records of a model. Each record can be edited in a modal. The form in this model contains a rich editor field. The rich editor field has some merge tags. But when I type {{ nothing happens. The same rich editor field works perfectly on a default resource page. Does it relate to this fix? ...

Markdown Editor Customisation

I would like to make some customisations to the markdown editor, e.g. setting configuration values for https://github.com/Ionaru/easy-markdown-editor?tab=readme-ov-file#configuration And probably other things. What's the best way to do this?...

4.1 Builder: Insert between blocks button: missing CSS

Hi, I upgraded to Filament v4.1 today, thanks for all the work. I noticed the Insert between blocks lost its CSS to fit between Builder items. Does that happen to you? I upgraded from v4.0 with composer update php artisan filament:upgrade bun run build artisan cache:clear package.json: ```...
No description

Filament 4 Make Actions Column Fixed

My filament table has lots of columns, so i need to scroll in order to view the action. Column. Is there a filament way of making the action column fixed, or do we need to use CSS?

Validate Before Action Modal Renders

Does anyone know if there's a way to run validate your forms before the modal renders? In actions, schema() runs first before action(), however, I need my form to be validated first before the modal shows up. I could pass $livewire in a closure for schema(), and then do $livewire->validate(), but if a ValidationException occurs, it is not handled the same way as when a ValidationException occur inside action()....
Solution:
Just add: $livewire->setErrorBag($exception->validator->errors()); inside of the catch block. ```php private static function validate(Page $livewire): void {...

TextEntry default configuration

How can I setup global configurations for the TextEntry. I want to add default date format and other properties, ``` TextEntry::make('updated_at') ->label('general.updated_at')...
Solution:
if you want all date times to use that format you can configure the Schema component. ```php Schema::configureUsing(function (Schema $schema): void { $schema->defaultDateTimeDisplayFormat('m/d/Y H:i');...

Filament styles not loading on Livewire component with HasForms

I'm currently upgrading my filament version from v2 to v4 and livewire from v2 to v3. Most of the issues have been solved but on my custom livewire components the filament styling is not loaded in. I've added both "@filamentStyles" and "@filamentScripts" to the head of the page but both don't seem to work. As an example the class fi-grid doesn't have the css: "display: grid". What could cause this and how can i properly load in the filament styles into my livewire component? There are no error...
Solution:
I am guessing you haven't include the assets to your custom frontend properly. v4 migrates tailwind to v4 and as such moves css includes form the js to the css file

Heroicon in Tag/Badge messing with alignment in Table

Whenever im using a heroicon string in a Tag/Badge it breaks vertical alignment... ->badge() ->icon(function (Employee $record): ?string { ...some code......
Solution:
HeroIcon is a BackedEnum. Sounds like your IDE is drunk
No description