Filament

F

Filament

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

Join

I'm Having this weird behavior with my panel, after upgrading to v4 the main panel is not scrollable

The side bar menu works well but the main content section is not scrollable vertically and it overflows on the sidebar
Solution:
Found the culprit. It was ->maxContentWidth(Width::Screen) in my AdminPanelProvider...

How to disable model observers during creating in Filament?

Hi everyone, In Filament, I have a model with observers attached. During the creating process, I want to temporarily mute/disable those observers so they don’t run. For example, when a record is created through a Filament form, I’d like the creating observer on the model not to execute....
Solution:
I think you can customize the creation process and use createQuietly($data) ```php protected function handleRecordCreation(array $data): Model {...

Handling Per-Tenant SMTP Settings

I’m building a multi-tenant app and each tenant needs to use their own SMTP credentials for sending emails (like what’s usually configured in the .env file). What’s the best practice or cleanest way to handle this?...

Filament up and running on nativephp desktop, i m using laravel 12 with Filament

Hi i m trying to get Filament v4 work with native php, i installed filament v4 on fresh laravel and then installed nativephp desktop and run it, app got build but show some js errors

Exporting to PDF from an Action

I'm using ExportAction::make() for CSV, which works fine. When trying to add a second button to export to PDF, I found that ExportFormat::Pdf doesn't exist. Question: What is the recommended or "Filament-native" way to provide a separate button for PDF export that respects the current table filters? Any guidance or reference to a package/extension would be greatly appreciated! Thanks!...

Small problems with navigationSort

I want to reorder menu links in the sidebar navigation. Since they are sorted alphabeticaly I used navigationSort as per documentation
protected static ?int $navigationSort = 0;
protected static ?int $navigationSort = 0;
but link I wanted to move stayed on the same place. Only time it moved was if I used negative values....

Upgrading to 4, static must be compatible with Livewire\Component::fill($values)

When I run composer update, I get the error static must be compatible with Livewire\Component::fill($values) Not sure how to fix that....

performance issues

Hi , my widget in dashboard take more than 40 sec to update the data when I change the filter in chart, can I improve the performance?

Dynamically creating or showing RichEditor causes issues.

I'm noticing a few issues when I destroy and create RichEditors on the fly, for example if a value change hides or creates/destroys an editor. I believe there is a timing issue where the editor is created, but the key and the content of the editors do not sync. Is there a way to force the editor to be rebuild? I'm trying to figure it out so even if I couls do that through the browser console it would be a nudge to solving this mistery

Custom Bulk Action for Export with Notification in Panel

Hi all, I’m working on creating a custom bulk action where I need to export data to Excel. Once the export process is completed, I’d like to display a notification in the panel with a download link. Could someone please guide me on how this can be accomplished without using the default ExportBulkAction?...

autocomplete from the global search input problem

Hello, How to remove the autocomplete from the global search input, when i navigate the search bar is autocomplete with emails..

Filament 4.1 login with Global Scope on User table

Hi - right so I have global scopes on many of the tables in my app. I do this for safety and efficiency of code reasons. The app is multi-tenanted and the basic dimension is that of the 'organisation'. My users belong to organisations. A user record as exists in the database includes the organisation_id to which it belongs. Part of the login code extracts that id and stuffs it in a Session:: variable....

RichEditor component causes horizontal overflow on mobile devices in Filament v4 forms

The RichEditor component in Filament v4 forms causes horizontal overflow on mobile devices, creating unwanted white space to the right of the form and making the form wider than the viewport. Thanks in advance...
No description

Action Modals not showing inside ViewRecords

Hello, I’m having an issue with ViewRecords. When I use actions with modals, the modal doesn’t appear. Has anyone fixed this issue before?

because renderhook on sidebar modal shows in navbar, how to make it normal?

i try to call the CreateAppointmentAction, customize action, but it render oh sidebar, how to make it show in body? ```<?php namespace App\Livewire; ...

Spatie Media not saving in filament page

Hi, I am using filament custom page and try to saving data but Spatie Media is not saving automically. Do I need to save manually? of course, how can I control for showing old image? `class CreatePost extends Page implements HasForms { use InteractsWithForms;...

dark mode

how to leave it in dark mode only
Solution:
Try ->darkMode(isForced: true) on your panel provider.

Filament v4 migration: Livewire SupportValidation breaks with global dont-discover

Hi everyone, I’m migrating a project from Filament v3 to v4 and I’ve run into an issue when disabling Laravel package discovery. Environment: Laravel 12.31.1 (migrated from 11)...
Solution:
Make sure that all of filament’s providers are loaded before the livewire provider.