Filament

F

Filament

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

Join

Multi sub domain session sharing

How can I share user sessions between two Filament dashboards running on different subdomains (e.g., admin.example.com and dashboard.example.com) that use the same Laravel codebase and database? I want users to remain logged in when switching between these dashboards I've already set SESSION_DOMAIN=.example.com in my .env file, but it's not working[it doesn't redirect to the dashboard page for both]. What other configurations or code changes might I need to make this work?...
Solution:
I think I had issues with the browser caching, cos it's working perfectly fine on another browser

Add a badge next to the title of my View page

I have a PackageResource that is using an InfoList and a ViewPackage page. My packages have a status column. I am able to display the status in the body of the InfoList as a badge but I would like to display it next to the title of the page instead. Is this possible?

I’m facing an issue with serving style files after installing Filament in a Docker-based

The installation was successful, but the styles are not loading properly, and I’m getting 404 errors for the CSS files in the browser. Details: I installed Filament in my Docker project, and the installation completed without issues. I verified that the CSS files exist in the public directory inside the Docker container....

Relation Manager policies

Hello guys! I'm implementing policies on my project and get a problem. I utilize the Relation Manager (attach) on some of my "policied idk if is correct to spell that way" resources. When i try to attach any register, all of them appears, like the example:...

Filament default ENUMS missing

Hi all, ever since I started using Filament (I am on v3.2) I cannot seem to use any of the default ENUMS that I find in the docs. Examples: use Filament\Support\Enums\IconPosition; "Undefined class 'IconPosition' "...
Solution:
Update: all okay now. Seemed that there also were some published filament views which caused troubles now. Deleted them and all is fine. Thanks again 🙏

Help changing the design of the Login page!!!

Guys, I have a special UI design for registration and login page and I want to implement them on filament, but I did not succeed in overriding the login page. Any help!!!Any help!!!...
Solution:
@Dennis Koch It worked as soon as I changed the browser.

filepond fileupload component

How can I add an input to the fileupload? I tried to do it this way https://github.com/pqina/filepond/issues/208 but it doesn't work for me to add it.

Custom Summary Page

I've got an app that uses tenancy, what would be the best way to create a summary page that has a small summary table for each tenant? I'm guessing a custom page, but I'm finding the documentation a little sparse for my beginner brain. Can anyone point me?

Why does getModelLabel change my text ?

If I understand it correctly, then resource::getLabel() is deprecated, and one should use resource::getModelLabel(). But... why does filament change the text that I return to plural ? ```...
Solution:
I was using the wrong method, I should have used getNavigationLabel()

Is it possible to use relationships inside my form when extending the Auth\Register class?

I'm trying to extend Filament\Pages\Auth\Register because i want to add more fields to my register form. I'm trying to use a Fieldset with ->relationship but I'm getting Call to a member function playerProfile() on null I've worked with Filament in the past and I've read the documentation, but I feel like either I'm missing something obvious or this is not possible out of the box? My code: ...
Solution:
add ->model(User::class) in the form ```php protected function getForms(): array {...

Multi Tenancy

Hi everyone, I want to create a tenancy system with several panels: App Panel (Central Application)...
No description

Why opening confirmation modal re-runs the table query

I have like 20 queries when the table loads. I have 5 actions for row. When I click on an action which needs confirmation then it re-runs the table query again. If I close the confirmation modal then the table query runs two times. Cannot the confirmation modal loaded without re-running the table query?

Spatie Translatable for RelationManager

There is no LocaleSwitcher for modals and therefor i cant switch the locale when inside a EditModel for a RelationManager for example. What would be the best way to solve this problem?...

Filament table builder using union query

I have a table with custom union query combining records from 2 tables. The list is displayed properly but when clicking the record, it gives the wrong model and some records have the same ID thus giving back the wrong record. Is there a way so let filament table know which column should be the unique? ```...

Clickable row add to bulk select

Alright this is super hacky but I haven't found a better way yet (feel free to point and laugh 😆). Looking for some advise cause eventually I'd like to reference the selected rows to update a widget values. (I opened a separate help post about that one) My goal was to change the default behavior on a table row so that when clicked, it simply selects it to be used for a bulk action instead of opening view/edit, etc. ```...

wizard scroll bar solution?

Has anyone got a good solution to the wizard obtaining a scroll bar ? It probably be ok, if the bar moved with the wizard, but unfortunately it stays at the start....
No description

Call to a member function getForeignKeyName() on null

I have a static method for the GetForm and upon creation of a new record i get the error above, i dont quite get how to go about it. Here are the snippets Admission.php(model)...

filament v3 assets not loading on production

I have project locally, everything working. I move files on web hosting, Nginx, Ubuntu 24.04, Claudflare, Filament v3, Laravel 11 When i login into the panel i have asset error that alpine...js use http and require is https or something like that. Anybody have nginx config for that? ...

Unable to find component after executing php artisan route:cache

I published a resources of the plugin I installed and modify it then after refreshing the web page it doesn't appear the modification I've made but whenever I execute php artisan route:cache it appears but the pages from it resources is cannot identify by the route or the livewire I think and to bring it back from the original state I execute the php artisan route:clear. Please below the screenshot.
Solution:
Unable to find component after executing php artisan route:cache
No description