Filament

F

Filament

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

Join

How do I run Filament's documentation locally to test changes before doing a pull request?

I feel silly asking this, but after I cloned filamentphp/filament and updated the docs, I don't see a better way other than using my IDE's md preview, but that doesn't factor for design and stuff that I want to make sure looks the same without any funky line breaks, etc. It's not a laravel repo so I can't run php artisan serve and I tried running npm run dev but it just builds assets. How do I host this thing locally?

Is it possible to use Filament 3 without downgrading Tailwind 4 to 3 if no custom themes are used?

I've read the documentation saying that it isn't compatible with Tailwind 4, however, it isn't clear whether this is a general requirement or is a requirement only if you use custom themes. I'm in a pickle because we're using Laravel 12 with FluxUI v2 which the latter requires Tailwind v4. I'm seeing a lot of questions and answers on this front, generally, regarding the use of v3 vs v4 but what I don't see is any questions or answers regarding isolating Filament 3 or using pre-built css and excluding from Vite, etc as an interim solution. Can I remove my custom themes for now and use pre-built css for Filament and keep my v4 tailwind for Larave's front end?...

topNavigation setting for each user

How we can adjust setting for each user for On/Off topNavigation()? I want each user to be able to do this setting themselves and have it stored in the database for each user separately, for example by adding a field such asis_topmenu...

Sidebar custom width of split infolist

Hi everyone, I'm struggling with the layout of an infolist page. I'm using a split to get a sidebar effect but this sidebar doesn't take enough space and I would like to specify 25% width for it. ...
Solution:
I've found a solution For those who need more width control with a sidebar for Forms and Infolist there is a component called group which I think is not documented (haven't found any mentions in the documentation) but can help achieve this using columnSpan on each group (for example 2 for the main part and 1 for the sidebar) and columns on the infolist or form with for example 3. You can get more precise with the column distribution with more columns (8 and 2 with colums at 10 for example) Hope it can help...

Little help with custom form input

Hey guys, how are you? I'm trying to create a custom input, but I can't capture the value generated by it, and the examples I found weren't very good... I want to interact with these two range sliders, to generate a kind of XY coordinate to position something somewhere else. I can combine and handle the update of the sliders to compose my coordinate, but this value doesn't seem to be visible to other inputs or components of the form. Should I configure some method in the input class for this or should it work automatically? Debugging through the state I can see that the value I expect is in fact in the state, but for some reason I can't capture it in a livewire component of the same form....
No description

Global search query is pulling in trashed models

My global search queries don't seem to be applying the soft delete scope. Is this intentional? For example, here is one of the queries. The Part model has the soft delete trait. ```sql...

Filament configuration in Laravel Cloud

I'm facing issue in deploying my laravel application on laravel cloud. My admin panel itself is not rendering which is done using filament....

Refresh tenantMenuItems

Hello, I am using ->spa() mode on my panel, and everything's good, except the menu not being refreshed when I switch to a different tenant. I was thinking maybe I can somehow change the URL of the tenant menu items, and then add exceptions to them, which is one way that would work for me, or if there is a way to somehow refresh the menu component so it pulls the freshest information, because the currently active tenant name does not update when I switch tenants. Can someone assist me in how can I achieve the desired? Thank you very much!...
No description

How to use toggle button as action button in repeater

I need to show toggle button (to update status) next to delete action in repeater.

$get() scope for Repeater actions

Hello, I'm trying to customize a Repeater's DeleteAction through the deleteAction() method, and I'm using a closure to configure the $action: ``` //...

Create relationship data from Parent from Create Page.

Greetings! Need help figuring out how I can store data to the relation table from the parent. I have : Event hasOne EventCourse...

Rich editor or Tiptap Editor plugin

Filament v4 is rumored to include Tiptap. If I was planning to upgrade from v3 to v4 next year, and wanted to start writing some rich text with images today, should I be doing that using the currently included Rich editor or a Tiptap plugin? Or is the outputted HTML similar enough to not even matter?
Solution:
Both support HTML, there is no special format

Bug Dropdown

How fix dropdown custom bug my side bar and dropdown is opened in first log in if i refresh is normal
No description

Server overload when opening from a bookmark.

Hello, i have an application made from laravel 11 filament v3. There is an issue that keeps bugging me and I couldn’t find a solution for it. If the application is in a bookmark and after a few days they try to open it the while server becomes overloaded. It happens with all the routes, when i checked separately, it works after cache is removed or opened from a new browser. Yes filament-optimize has been run. I increased php-workers too. I increased server size. But still no avail....
No description

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? ...
Next