Filament

F

Filament

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

Join

my filament resource when i enter value its not saving in db and have error

this is my error ` SQLSTATE[HY000]: General error: 1364 Field 'value' doesn't have a default value INSERT INTO translations (alias, updated_at, created_at) VALUES (fafafafa, 2024-10-18 09:11:24, 2024-10-18 09:11:24) f but im enter value this is my code ```...

ExportAction: Route [login] not defined error

Hello everyone, I use bulk ExportAction in resource. Everything works normally, from notifications to downloading the file. The file is created, the data comes in the structure I want. But when I try to download the file, I get the error that appears in the attachment. I am using a different model as the user model. I have also completed the steps for the manipulation in the migration file. Has anyone experienced this issue before? If so, what are your solutions? Thank you in advance....
No description

protected static ?string $navigationGroup = 'Settings'; doesn't work

when i use this it shows that there is a group item on the left but when clicked nothing happens

FileUpload multi-node

I have set up a FilamentPHP v2 & v3 application on a multi-node Docker architecture without shared volumes between the containers. For file uploads, I am using S3, as my containers do not have persistent local volumes. However, I am encountering an issue: files are not always uploaded correctly. This problem becomes more frequent as I add more nodes to the cluster. This behavior seems to be related to how file uploads are handled in a multi-node environment, since everything works fine when I only use a single node. Here are my assumptions based on my observations: 1. Initial upload: When a user uploads a file, it might be temporarily stored on the node that received the request....

Filament Table Text Column action not firing

I have a Filament table widget, in which I do a semi complex query to fetch some grouped data: ```php public function table(Table $table): Table {...

Filament Teams with Some Multi-Tenancy Features

Is it possible in Filament multitenancy to have a super admin who can access the site, create teams, and assign admins to members? Essentially, the super admin wouldn’t need to create a team upon first login.

Customization beyond themes and css

This may be a dumb question, but if I wanted to modify the filemament to be different like add a header / footer, sidebar, etc. is this possible to deviate from the vanilla layout? I am looking at plugins and those seem to be useful for widgets, just wondering how far is realistically possible to help this fit in with client sites and ui's. I am evaluating a wholesale switch from other CSS's to using filament and am anticipating some of the request as a result from clients. Is there any useful resources you can point out that may touch on this? (so far "customzine" has be to css changes only as far as what I've found) Thanks so much - the main site, blogs and tricks are really awesome and am really starting to enjoy Filmanent - and will be getting familliar with many plugins!...

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