Filament

F

Filament

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

Join

Modal opened without Action

is it possible to use something like this: public function openModalAction(): Action { return Action::make('openModalAction')...

Github action openspout/openspout

anyone have an idea why this is falling with PHP 8.2 and filament 3? https://github.com/lara-zeus/zeus/actions/runs/14956136694/job/42012041485?pr=28...
Solution:
Filament supports 8.2. Filament isn’t the issue. It’s openspout. You need to provide the version in the matrix that does support 8.2

Open Modal with parameters

Hello community 👋 do you know how to pass parameters to modal with livewire dispatch? I need to pass $payment to my paypal modal:...

Inconsistent Logo Size and Unreliable Button Labels in the Registration Wizard

Two issues are encountered while implementing a registration wizard with FilamentPHP: 1. Logo Size Changes Unexpectedly: - The logo is designed to be displayed prominently on specific routes (e.g., login, registration, two-factor authentication). - During the wizard, especially when interacting with dropdown menus, the logo unexpectedly shrinks to its default size....

asignRole in filament-shield

Hi everyone, I'm facing an issue with Spatie Laravel Permission. I'm trying to assign a role to a user after syncing data from another database. The user is created or updated successfully, but the assignRole method doesn't seem to work — no roles are assigned, and nothing is written to the model_has_roles table. What I've Tried:...

Repeater `saveRelationshipsUsing(null)` Not Hydrating Data Correctly

Repeater example: ```php Repeater::make('spot_types') ->relationship('spotTypes') ->saveRelationshipsUsing(null)...

model duplicate in roles and permissions

i have one model ExpenseSetting but i see it as two in roles and permissions
Solution:
i got it i just realized i used my model in two different resourcces
No description

Creating morphOne with a hasOne relation from a morphTo relation manager

A client can have many contracts, a recruitment contract has a morphOne relation with contract, and also a hasOne relation with visa I'm using contracts relation manager for clients, where in a wizard layout, user can choose contract type, than fill the morphTo contract details, and the final step is to fill the details of the selected contract type. Everything works correctly except the Visa information are not stored into the database and consequently visa model does not get attached to recruitment contract. this is my form...

Jetstream & Filament

Hi I want my app to have two different faces - general public (self-register, MFA etc.) - admin (users created only be other admins) ...

Table within Create Form.

May I ask what the best approach would be to add a table with a form? The table should also act as a form field, as I plan to save its data in a pivot table.
No description

What different Action method `using` and `action` ?

I want overwrite logic CRUD Action. What method can i use to overwrite it using CreatePostAction, UpdatePostAction, DeletePostAction? ```php EditAction::make() ->using(function (Model $record, array $data): Model {...

Theming without using Panels

Hi everyone. How i can make custom theme without using or installing Panels? The theme docs only for Panel section, not for individual components like Tables, Forms, Actions, Infolists, and Actions....

Why is the form not showing?

I added a form but it is not showing on the page why?
No description

Filling data in custom forms on a custom page does not work

I am trying to have two forms on a custom page for a resource. Neither of forms is attached to the model. I am unable to populate the form with data. It just doesn't do anything. Here's what I've done: ```php class TakePaymentPage extends Page {...
Solution:
Hmm. All that looks ok. But you’re missing the statePath() on each form. Make sure you haven’t missed any of the steps here: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#using-multiple-forms

->recordUrl(null) with ->expandableLimitedList()

Hey, Quick question, is it normal that I have to use ->recordUrl(null) in order to be able to click on ->expandableLimitedList() when also using ->spa()? I like to directly click on rows to access to the edit page and it's kinda annoying if I have to disable recordUrl. Thanks....

Multi-tenancy -> Navigation Badge count is querying for all tenants instead of just selected tenant.

Hi Guys, I have multi-tenancy configured with global scopes so the navigation badge count is showing the correct value, however if we have an admin who can access many tenants we run into time outs or extremely long loads, checking debug bar we can see that the system is trying to query count for each tenant the user has access to instead of just the currently selected tenant. Fyi - we also have the below on the resource public static function getNavigationBadge(): ?string {...

How to show custom 404 message on {record} route for every FilamentPHP v3 Resource?

In FilamentPHP v3, when a user visits a route like /posts/{record} and the record doesn’t exist, it throws the default 404 error page. Is there a way to override this behavior to show a custom 404 message or Blade view — ideally inside the Filament layout (replacing the main content)? I’d like this to apply globally to all resources, not just one by one. Is there a clean, reusable way to extend ViewRecord or hook into the record resolution logic?...
No description

Builder Field and default block

My blocks are dynamic and it might be that the user only has access to one block. Is there a way to have that one block already showing or at the very least, make it so the addAction is simply that one block versus a drop down to select it?

Change action color and "reload" page

Hi! I'm working on a simple resource, and want to add a refresh button to delete the cache, I want to change the action color and reload the form when done. How can I implement this? For the color I found the ->color method but that did not do anything. ```...

Enable disabled button after creating related item

I have the following action on my resource, and as you can see it is checking if the record has 1 or more rounds connected to it. In the gui the action is displayed above the table where the rounds are displayed via a relationmanager. Can I make this disabled/enabled state change interactive, so I dont have to actually reload the page after adding another round(s)? Any help would be much appreciated. Thank you in advance. ...