Filament

F

Filament

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

Join

custom 2FA

I have a trait to send otp sms with a provided endpoint that i need use in filament dashboard while logging in. I don't know how can I customize the filament auth to do this, and I tried to use 2FA plugins that support sms but I couldn't customize it to use my trait. note that I'm using the Admin model not the User model as the panel guard...

Is this memory usage normal?

Im new to laravel & filament, and i've been working on this project for a month now and just discovered laravel debugbar, but im seeing memoru usage around 40ish just like in the pic , but i see in this video https://www.youtube.com/watch?v=LGHKjqLAhP4 its memory usage just 3 mb did i do something wrong? my install step : 1. i create-project laravel...
No description

Logo missing from mobile top bar + navigation(false)

I have a panel which is almost exclusively used on mobile devices, where I remove the navigation with navigation(false). Apparently the panel logo disappears on screen width < 1024. This makes sense when navigation is enabled, as the logo is then moved to the top of the navigation menu. But when navigation is disabled, then the logo still doesn't appear on the mobile top bar. Is this a bug? Or can I easily get the panel to show the logo on the mobile topbar?
No description

Programmatically open relationManager View/Edit modal

Goal I have linked two relationManagers to a Resource (parent). On the parent I would like to be able to call a function which opens the View/Edit action on a specific record in the relationManager. Motivation...
Solution:
I figured it out! 馃コ

Form relation state

Hi, first i dont want setModel() because i need process form data manually and dont want to save it automaticlly, i have Client model with morphTo ClientPersonProfile etc.. when i do Client::with('profile').. and then i do $this->form->fill($client); i see client fields in state filled ok = in state are only filled existing form fields (like email), BUT in profile state there is full profile = all columns/model properties, not only for existing fields in group.. its possible to do in way...

filament-fabricator with spatie-laravel-translatable-plugin

Hello, I'm using fabricator as a page builder but when i try to add the content in another language the data is stored with some additional UUIDs which breaks the panel becuase the structure of data is changed. Does anyone faced the same issue?
No description

Show navigation and topbar conditionally

In my panel provider I am disabling the navigation and topbar like this:
->navigation(false)
->topbar(false)
->navigation(false)
->topbar(false)
...

Reuse Component Function

Hello - is there a way to reuse a function on a form component? For example, I have a Select element and I only want it to be required if it is visible ``` Select::make('name') ->required(function ($get) { $id = $get('category_id');...

Help on how to take field values and use them inside Repeater::make fields

I want to take the ID from user_id and work with it in the products field Forms\Components\Select::make('user_id') ->label('Client') ->options(function () { return \App\Models\User::whereHas('roles', function ($query) {...

Relation Manager creating

Hi, how to catch the Query exception while creating in relation manager modal? I can't find the correct action method to customize.

I want to change default table for user

I have a table called web_users before, and i want to adopt filament. Since the default table value is users, how can i change the login and auth implementation to web_users

Custom Field Send Multiple Data

I have to create a custom field and I have to send extra form data while submit the form with extra customization. like Here I make custom field by extending Rich Editor ```php CustomBio::make('bio') ->columnSpanFull(),...

Custom field with google map re-render problem

I have a custom form field with Google map inside it. The problem is when some other form fields, like select input with live modifier is changed form gets re rendered as expected, but google map disappears. How to prevent re-rendering of google maps element. I tried to add wire:ignore on the parent but that does not help...

modify the black background of the png image generated with the apexchart

Hi everyone, i am asking if there is a trick to modify the black background of the png image generated with the apexchart. thanks

Files Not Updating Properly After Git Pull

I'm working with a Laravel application that uses Filament and several packages like filament-shield and filament-exceptions. Everything works fine in my local development environment, but when I commit the changes to GitHub and pull them on the production server, some files don鈥檛 update correctly. For instance, my PanelAdminProvider file wasn't updated as expected, even though it works fine locally. Here are the steps I鈥檓 following: 1. I commit all my changes from the local environment to GitHub....
Solution:
ok. got it it was the filament cache php artisan filament:clear-cache-components < made it work...

JS not working on frontend with Fabricator Blocks

Hi, I am using the Fabricator plugin to create pages and blocks. When I create a new dynamic page with Fabricator, the CSS works on the frontend, but the JavaScript does not. In my AppServiceProvider, I am already compiling Vite, but I also created a default.php layout file. What am I doing wrong? Can someone help me? AppServiceProvider...

Change action priority in clickable rows

Due to Model policies i have View actions and Edit actions, but when i have View action it changes the priority from edit to view, is there any way of changing that behaviour?

DateRangePicker - disabledDates()

Hi guys, I have a problem with the update or the reactivity of the "disabledDates()" function. I would like to achieve the following. An item is selected in my BookingPosition-repeater, the DateRangePicker should then block the periods where the item already has bookings based on the selected item. Currently, I only see blocked periods if both the item and the date are already in the database. If I add a new position with the repeater, no date is loaded. What can I do about that?...
No description