Filament

F

Filament

Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.

Join

FiltersLayout

Would it be possible to create a custom FiltersLayout? We have a client who is adamant about having the filters on the left side of the screen persistently, like many shops have for their stores. The layout of the slideout modal is the closest to what we want, but we can't get it on the left, nor can we get it to stay in a non-modal. I've been trying to figure out how to create it but I'm not sure what the best way to go about doing that would be. Anyone do this before?

most filamenty way of securing multi-user models?

hello, so when for example i have a PostResource that has user_id, meaning this post was made by that specific user, what's the best way to make sure the user can't access view/edit pages for the models that don't belong to that user? i can prevent the table from showing other users' posts, but the user can still manually access the edit page by opening posts/edit/id and writing an id of a post that don't belong to them. how can i easily prevent this? is there a magic method within filament for this?...

Table filters result

Hello everyone, Please how to use the result of table filters in my custom action?
Solution:
I'm not sure what you're doing but it's worth checking out https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export too

Notifications Mark as Read\Unread as appropriate...

Has anyone managed to get the Notifications with the MarkAsRead() & MarkAsUnread to only appear on the either Read\Unread notifications as appropriate yet?

Two tables on page with asynchronous refresh

I need to display two tables on the same page, each with a different query. When performing an action that moves a model from one table to the other, I want the tables to update accordingly. I'm considering using two table widgets, but I'm not sure if refreshing will work correctly. From my experience, when I perform an action on a model in table1, it disappears from there as expected—but it only shows up in table2 after a full page reload. Do you have any tips on how to handle this properly?...

$livewire->dispatch('refresh') not updating data

Hi all! I have a form where some of the form is in it's own section, where I've used the footerActions on the form to allow the user to save some of the form data. But when saving the data in that action, the form doesn't rerender or reload or show any updates. I could find some posts in here mentioning using the $livewire->dispatch('refresh') which sort of works, but it doesn't update the latest changes, only the second latest if that makes sense? ...

Cannot Scroll Inside Edit/Create Modal

Hello, I’d like to report a bug or ask if anyone else has experienced the same issue. When I open a modal (either Edit or Create), the scroll doesn’t work. Has anyone else encountered this issue? Is there any solution? I’ve attached a screenshot and the output of php artisan about as well....
Solution:
Thanks for the insight — you were right! I’m using a custom theme, and the issue was caused by this CSS: ```css .fi-body .fi-layout { background: #e9f0ff;...
No description

Race condition when modify record

Hi everyone, I'm new to Filament, I have a question: when 2 different users change data (update or delete) at the same time, how to prevent this? I have learned about the handleRecordUpdate function and used lockForUpdate when querying data to be updated, but what about deleting?

Chart Widgets behind load balancer throw RootTagMissingFromViewException

I have a few standard bar chart widgets on the default dashboard. They all load successfully in a single-server environment. When I put my application behind a load balancer (multiple server instances, no sticky sessions), multiple livewire/update requests fail with:
Livewire encountered a missing root tag when trying to render a component. When rendering a Blade view, make sure it contains a root HTML tag.
Livewire encountered a missing root tag when trying to render a component. When rendering a Blade view, make sure it contains a root HTML tag.
...

Problem with Viewing Related Records in RelationManager

I’m experiencing an issue with displaying the preview of a record from the list rendered by the RelationManager component in my application. My goal is to have a view that shows both the main record’s details and a list of related records. To achieve this, I used the ViewRecord component for the main record and RelationManager for the related entries. I embedded everything into a Blade template, passing the appropriate view to ViewRecord (using the $view variable). The basic functionality works correctly—I can see both the main record’s details and the list of related entries. However, the problem arises when I try to preview one of the related records from the RelationManager’s list. When I click the preview icon, a loading spinner appears, but nothing else happens—the preview modal does not open. Additionally, if there are multiple entries in the list, clicking the preview icon for one record causes the loading spinner to appear for all entries, and the eye icon disappears everywhere. Has anyone encountered a similar issue or has any ideas on how to resolve this? I’m wondering if the problem might be related to how the components are embedded in the Blade template, a JavaScript conflict, or improper state handling for the preview modals. Any suggestions or guidance would be greatly appreciated!...

Actions in a table group header

Hello, is there anyway to add Actions in the headed of Group component that I'm using to group some rows of the table?

database notification change table and body

hi guys, i want to change the table of filament notifications and change the data but couldn't find any resources can i apply this feature ?...

Laravel+ Railway deployment

Hello everyone, I need some help regarding a deployment issue I'm facing with my Laravel project on Railway. I’m currently working on a small Laravel training project, and I deployed it to Railway using a simple .env file I only filled the necessary environment variables like the app name, environment, debug mode, app URL, and database credentials for SQLite. When the deployment starts, the logs show a lot of warnings from Laravel about missing environment variables,...

hey there i found out there is a possibility to add a image to a view page

is there someone who got documentation about it or has a function they can show me how it works for you ( i wanna create something simulair to the purple image)
No description

download export error

this is error on log [2025-04-20 19:32:06] production.ERROR: Argument passed must be a stream resource, NULL given. {"userId":1,"exception":"[object] (TypeError(code: 0): Argument passed must be a stream resource, NULL given. at /var/www/Cash-Craft/vendor/league/csv/src/Stream.php:173) [stacktrace] #0 /var/www/Cash-Craft/vendor/league/csv/src/AbstractCsv.php(97): League\Csv\Stream::createFromResource() #1 /var/www/Cash-Craft/vendor/filament/actions/src/Exports/Downloaders/XlsxDownloader.php(35): League\Csv\AbstractCsv::createFromStream()...

❓ Issue in Filament Shield with multi-tenancy

❓ Issue After Running php artisan shield:install admin --tenant --generate-relationships Hi everyone 👋 I’m using Laravel v11, and I ran the following command to set up Filament Shield with multi-tenancy: ...

How to stop "Attach" action in a Relation Manager if the parent resource form is dirty (unsaved)?

Hi everyone 👋, I want to prevent the execution of the "Attach" action in a Relation Manager if the parent resource form has unsaved changes. isDirty() on the owner record doesn't reflect Livewire form changes. and I’ve already made the relevant fields live()...

Environment selector

Good evening! Guys, I need a plugin or documentation recommendation to do something similar to the screenshot attached. Basically, I have a Model called "App" that is linked to the user and it can have several apps....
No description

Modal from an extra footer action to bind with modal form?

Is there a way make modal extra footer action to work with modal the modal form in terms of validation and form data access. The point is to be able to trigger confirmation after filling the modal form before action. `Action::make('edit') ->form([ // ......
Solution:
Sorry guess I’m just not fully following the use case. Is this what you are trying to achieve: https://filamentphp.com/docs/3.x/actions/modals#opening-another-modal-from-an-extra-footer-action