Filament

F

Filament

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

Join

i want to use multi factor auth in the app and custom routes for login

I have two issues. First, the system is sending a verification email, but after two-hours the mail never arrives. Second, I cannot customize the login route; it's always /login/{role} instead of just /login, and it redirects to /{role}/dashboard after authentication.

Any way to hide Action trigger button but not the action modal ?

This action modal auto opens when the page is loaded and the action trigger button sits at the render hook Body start on top of the page. How to hide it ? ```php public function onboardingAction() { return Action::make('onboarding')...

Livewire Component in Custom Field Shares State within a Repeater

Just for context: I am using a simplified scenario here as I can not share the actual code. What I am trying to do: I am trying to use a Livewire component that is rendered via a custom Filament Field inside a Repeater. Each instance of the Livewire component should manage its own state independently. For context, I am relatively new to the TALL stack....

Filament v4 livewire 404Livewire 404 not found already added route into web.php like v3

Hello all. Need urgent help i deployed my project to server . I used filament v4 , facing issue livewire 404 not found . I followed all step which we follow during filament v3. I already added route into web.php where we pass custom folders path to remove this 404 error

Tabs in Resource with Multiple Models

I have a Filament v3 resource that needs to display data from 3 different models in 3 separate tabs, each with completely different column structures. My Setup: Main model: Device Secondary model: DeviceCred...

Filament 3 Fieldset relationship not storing

I have a couple form fields wrapped in a Filament Fieldset like so. ```php Fieldset::make('Recommendation') ->visibleOn('edit')...

Display Model name on page title

So, i have tried for an hour or two now, figured i have to ask because i can find some info on getTitle() and getHeader and getHeading(), however, even if i do return $this->record->name It does not return it, if i dont have a null check i get error that name is null. I figured its because its not loaded yet, but i have tried everything now, whats the cleanest and bests way to just display the model name ( model of which we are editing right now ) as title of page? ...
Solution:
It's because you made the $record protected. I think Livewire only fills public properties.

Help - Repeater Add Multiple Items Action

Can I get help with an action to add multiple items inside a repeater based on user input.

Why does toggle of columns is saved in session on demo.filamentphp.com, but not by default

If you go to https://demo.filamentphp.com/shop/products/products and toggle columns and refresh you can observe that they are saved in session. I looked into the source code and I couldn't find a reason why toggeling columns is saved in session.

Displaying an array of images in Infolist.

Hello, I have an array in one of my models that stores images. ``` [ "url", "url",...

V4 Enum not save the value on Radio

when use Enum class as Option to Radio it save the Enum with value and name , and I must use MyEnum->value to manopulate it , even in create or update resource ....

How to Enable child resource to tenant based on the parent model belong to the tenant

Suppose I have Post Model that has tenant_id as a forign to a Tenant. I then have Comment model that belong to Post with post_id, but Comment does not have tenant_id. Now If I would like to have Resource of Comment to listed in Navigation menu and under the Tenant user only. How I would do that.
Solution:
I got it now by setting this: protected static ?string $tenantOwnershipRelationshipName = 'post;
No description

Help with resource actions

What I am trying to do: I Have a resource who has a user related to it. In the table i have a column to show who is this user. ...

Code Editor Component Options

Is the a way to set options on the Code Editor control? I'd really like to change the tab spacing from the default 2 to 4. Codemirror's doc's aren't very helpful in this regard either and, regardless, there doesn't seem to be a obvious way to pass this to the underlying JS
Solution:
Looking at the code, there’s no way currently to set this. Maybe Dan would accept a PR for it though.

Weird css styyling after v3 to v4 upgrade

Hi folks, I just upgraded from v3 to v4 this simple app, it just 2 basic Resources. First screenshots are v4 screens and last two ones like it used to be on v3. I was using custom theme on v3, after checking for some solutions around I disabled custom theme and ran all suggested commands I found. But still could not get it running fine. What else shloud I check to solve this? It is a simple app, if no easy solution, I've no problem to start fresh app on v4. Thanks in advance for your help...
No description

Content of Other Tabs Missing After Performing Action Inside Filament Tab

Good day everyone! 👋 I’ve encountered an issue in FilamentPHP Tabs where performing an action inside the Members tab causes the content of the other two tabs to disappear. Has anyone experienced this before or knows how to fix it? I’d really appreciate any suggestions or solutions. ...

Require Confirmation for form submission

Hi, When setting canSubmitForm to true on an action, the requireConfirmation has no effect as it disables the Livewire click handler and just show a sumbit button. ``` Action::make('save') ->requiresConfirmation()...

Relation manager, CreateAction modal: Livewire Exception

Laravel: 12.34.0 Filament: 4.1.8 I have CreateAction of relation manager that works on modal. ...

Detect current mode (dark/light) in custom page

As the title says, what's the best way to detect the current active mode (dark/light) in a custom Filament page? I have something like this ```html...
Solution:
Yeah, what I'm going for right now is transform the existing classes. So from this (example code) ```css /* light.css */ .foobar { border: 1px solid red;...