Filament

F

Filament

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

Join

Upgrading to v4 white screen

What could be the reason, for my Tailscale domain turn into https://0198985e-a1d4-7050-ae91-d8b41f7f64e8/ when i visit my domain? This happend after updating to v4 using upgrade guide. Any help appriciated!...

V4 Questions (Nested Ressources, ModalTableSelect)

Let’s assume there is a model Project. A Project has many Campaigns. A Campaign has many Variants. The Project (and all related data through it) is in the scope of a multi-tenancy Team. So the nesting is: Team → Project → Campaign → Variants....

Importer issue

im trying to import a csv file 1.7mb, and it has 160k rows, and im getting the error
No description

Bad URL on async job when having domain for panel v4

When I setup admin panel domain with ->domain('backend.domain.test') and call filament()->getPanel('admin')->getUrl()on a async job, I receive http://domain.test instead of http://backend.domain.test Is this a regression on V4 ?...

Laravel Notification Problem

Anyone has same problem about event listener for database notification with horizon running on cloud run ? the listener cannot dispatched.

Globally set single column for forms/infolists

Is it possible to set all the forms and infolists to have a single column only? Or alternatively set all the infolist/form elements to columnSpanFull?
Solution:
So something like this maybe ```php use Filament\Forms\Components\Checkbox; Checkbox::configureUsing(function (Checkbox $checkbox): void {...

Override Table::configureUsing

Hi All, I have below in my app service provider ```php...

v4 Rendering Relation Manager in a Modal not working

Previously, in v3 I was able to render a relation manager using this: ``` ->modalContent(function (InventoryItem $record) { return ViewField::make('unitConversionRelationManager') ->view('filament-panels::components.resources.relation-managers')...

Collapse Repeaters based on $state or with JS

Hello. I have "Orders". They have many "Items" so I use Repeater::make. I guess you can't use $state since Collapsible applies to the repeater not to each individual item. So how can I collapse each item individually based on $state['done']....
Solution:
Hey, i looked into Laravel 4.x docs and they added more utilities. Looking at the https://filamentphp.com/docs/4.x/forms/repeater#collapsing-items table, nothing working for me. But looking into https://filamentphp.com/docs/4.x/forms/repeater#adding-a-label-to-repeater-items-based-on-their-content table, I noticed "item" param. And it worked: ```php...
No description

Import rules

Hello, I am trying to import users using the default importer feature. But I'm encountering several problems. ...

Do you have some guides for creating your own Repeater?

I have tried making my own repeater component and honestly I have a bit of trouble implementing it (I used the default repeaters blade design). It has lots a problems especially for when generating a new data. I get a missing column even though I manually specified it. Do you have a good guide for making your own custom component? Using 3.x btw...
No description

extending TrashedFilter (translation with variable)

Hi all, I'm extending the TrashedFilter on a table to create a "ArchivedFilter". Below is my class, the problem i now have is that the "$this->getPlural()" is null, and than my translation is not complete. ...
Solution:
i found it. It was as simple as needing to use a closure. ```php...

Filter not apply on table query

Hi, I have a problem with a filter query that does not apply to the table. The property type is not database-based, but I take it from other models. So I have a scope ready that returns a query in this form:
select * from subscriptions where subscriptions.id in (11)
select * from subscriptions where subscriptions.id in (11)
The filter query returns the correct SQL query of the same form, but when I apply the filter, it does not appear in the table. Do you have any idea why?...

v4 default sorting DESC?

v4 is going to introduce default sorting by primary key. Will there be a way to globally set this ordering by DESC?

Get a record ID (from route?)

I'm trying to ensure all uploaded assets get tied to a specific model. Basically the entire app revolves around this model, every other form/field is a child of that model at some level. I've tried creating a custom field for uploading these assets but I can't figure out how I would get the current route's parent model ID. It isn't always as simple as just $parent since we could be ON that parent or even 3 levels deep....

recordAction not executed, instead toolbarAction is executed

Hey - here's a weird one. my resource has the same 4 recordActions and toolbarActions defined. When I choose the record action on a table row the corresponding toolbar action is executed instead of the record action. I noticed this because the notifications were wrong - instead of saying: "Shop <name> was suspended" it kept saying "{count} shops were suspended". So I added a couple of ray() commands and sure enough - the recordActions are now NEVER being executed. I'm attaching a scaled-down version of the resource....

PAGE form field default not populating field

The form displays OK but the default value is not populated ```public function form(Form $form): Form { return $form...
Solution:
I have to remmber to look at the console messages...
I needed to add the field to the $data []...

Redirect to List after Edit - Global setting?

Hi, the default behaviour after editing a resource is to stay on that resource's page. Is it possible to make a global change to redirect on edit to the List view?
Solution:
Starting with Filament v4, there is a global configuration option for this: ``` use Filament\Panel; ...

disableToolbarButtons() fails when toolbarButtons is null in RichEditor

I’m running into an issue with RichEditor when using disableToolbarButtons() without defining any toolbarButtons. If no default buttons are set, $this->toolbarButtons is null, and disableToolbarButtons() calls array_reduce() on it, which throws:
array_reduce(): Argument #1 ($array) must be of type array, null given
This happens in the InteractsWithToolbarButtons trait (line 33)....

v4 Rich editor images are stored as blobs in database

What am I missing if images I drag and drop into a rich editor are stored as blobs alongside other content in the database column, and not uploaded to storage as image files? 🤔
"content": [{"type": "image", "attrs": {"id": null, "alt": null, "src": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD...etc
"content": [{"type": "image", "attrs": {"id": null, "alt": null, "src": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD...etc
I used this setup except public instead of private https://filamentphp.com/docs/4.x/forms/rich-editor#uploading-images-to-the-editor...