Filament

F

Filament

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

Join

Filament Form Slow with Hundreds of Repeater Rows – Any Solutions?

Hey everyone! I’m using FilamentPHP for a multi-step (wizard) form and I’m running into serious performance issues with a custom table row repeater. I use it with a relationship, and when there are a lot of rows (like 350+), the data sent back and forth becomes huge and the form takes forever to load or update. Has anyone experienced this?...

Update preset in tailwind.config.js to V4

Sorry if this is not the right place, but wasn't sure where else to ask. In v3, tailwind.config.js had the Filament preset loaded ```js...
Solution:
You don't need a config file anymore for Tailwind V4. It's configured inside the CSS file

Validate not triggering

Hi , I’m facing an issue where submitting the “Create ITRF” modal results in an internal server error whenever a required field (like item_name) is left empty. Here's a simplified version of my setup: * In the modal footer actions, I'm using:...
Solution:
workaround ```php Action::make('save_draft') ->label('Save as Draft')...

FILEUPLOAD: How can I detect file removal on multiple/single file upload in real-time?

I'm creating a form that has a fileupload. I need to check if there are files uploaded, if has uploaded file the other fields will be disabled automatically. Steps Step #1. Upload one or more files -automatically detect if one more files uploaded. Disabling other fields...

For the CreateOrder page I want two buttons at the bottom of the form,Draft and New

I need two buttons to create an order. They should set statuses. I try to do it in two ways, but neither works. ```php public function getFormActions(): array { return [...

Making a RichEditor field required

How do you guys do this? If I add required() it doesn’t work, I guess because it always has a “<p></p>” value? Is this is a TipTap problem or was this already the case in v3? Weird no else seems to have this issue....
Solution:
It’s a Tiptap thing. It always has to have at least one element which is the default empty p tag. Might be a good pr for a custom required validation or check in the dehydrate state to see if it is empty. For now though you could do a custom required rule. V3 didn’t use tiptap so wasn’t an issue there....

Rich editor and spatie media library

In the docs for the rich text editor in V4 - https://filamentphp.com/docs/4.x/forms/rich-editor#uploading-images-to-the-editor - you can find:
Filament also supports spatie/laravel-medialibrary for storing rich editor file attachments. See our plugin documentation for more information.
But there is no further documentation for this in the corresponding page (https://filamentphp.com/plugins/filament-spatie-media-library#using-media-library-for-rich-editor-file-attachments). Is this a known issue or am I just stupid/blind?...
Solution:
@awcodes Well I tried this now again with the current documentation provided under https://filamentphp.com/plugins/filament-spatie-media-library#using-media-library-for-rich-editor-file-attachments I copy pasted the code, just renamed the class: ```php...

Tailwind not picking up classes after upgrade to filament v4

I have recently upgraded to filament v4 and with that to tailwind v4, but where v3 used to pick up and include styles in my custom blade components, v4 doesn't seem to do that. For reference here is my configuration: vite.config.js: ```js import {defineConfig} from 'vite';...
Solution:
Okay, so I've fixed that too, I'm just leaving the solution here, if you are extending a filament page class and rendering that outside a panel, you have to add the @vite directive to the layout used by the pages (I did this by overwriting the base layout, there might be a better solution)

Observing models and relationships

Hi, I have 2 models for example say Library and Book. On my Library create page I can select the books that belong to this library. When I save the library, the books are also saved in the relationship table. I have a LibraryObserver so that I can perform some processing when it is created - however, the processing involves the books too....

Queries work fine on local but I'm somehow getting "Could not find driver connection"

Queries work fine on local (sqlite) but I'm somehow getting "Could not find driver connection: , SQL: ..." error in production (pgsql) in squire model package
No description

Spatie MediaLibrary images columns

can I somehow manage the number of columns the images in the MediaLibrary plugin take? Now the images that the full row, but I would like, for example, 3 images per row. Can i manage that with PHP or do I need to use CSS? Thanks...

Builder inside Custom Block Modal

Is this possible or will it be at some point? An example could be a A Hero Block where you would like to add multiple hero elements as a Slider/Carousel. I tried it like this: ```php public static function configureEditorAction(Action $action): Action {...
Solution:
There’s currently a bug with actions inside of modals. https://github.com/filamentphp/filament/issues/16549

How to change /admin to different page?

Instead of going to the dashboard, i created a page called PanelDefaultHomePage, and I want to make the /admin to go to this page and the Dashboard should only be accessible via admin/dashboard

FullCalendar saade/filament

Hello guys! Does anyone know how to refresh FullCalendar widget in filament from it self?
Solution:
$this->refreshRecords(); Read the older docs 😄

paste files to FileUpload?

hello, so in most websites when you can upload an image, you also have the feature of pasting an image from clipboard, will Filament support this? i haven't found any discussion on this

Problem implementing stancl/tenancy with Filament 4

I’ve been trying for days but I can’t get multitenancy to work. I’ve installed Stancl, and I’m at the point where I can create tenants from the backend with a dedicated database and admin user. But I have a login issue: If I visit a URL like tenant1.mysite.ddev.site/login or tenant2.mysite.ddev.site (these are two existing tenants), I see the login screen, but when I try to log in I get:...

Tailwind Colour Palette Not working

So in my blade I have the classes accordingly, for example `text-violet-500'. Which is an available tailwind colour. I've added my view in the tailwind.config.js. And I've tried registering the colour in the ->colors array inside the AdminPanelProvider. But I just cant get it to work I am running npm run build on each change correctly also....
Solution:
I've have had to add to the safelist key ```js safelist: [ {...

filamentphp Maximum execution time and Allowed memory size issue.

I recently installed FilamentPHP and created just three resources for the admin panel. After that, I added the Filament Spatie Media Library plugin. Once I uploaded a file using the media library, I started getting errors related to maximum execution time and allowed memory size. Now the admin panel shows a 500 Internal Server Error and doesn’t load at all. I’ve already increased both the memory limit and execution time in PHP settings, but the admin panel still isn’t working....
Solution:
Please upgrade Filament to the latest version if it isn't already.

Widget Table : display records count

Hello, on my dashboard, I display a Table widget. I'd like the number of entries to be displayed. Like in a classic table, for example "Showing X of X results". I can't find a way to do this Thanks for your help...