Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Mikasa
Posts
Comments
F
Filament
•
Created by Mikasa on 10/1/2023 in
#❓┊help
Make Form Component Utility Injection Can be Called from Custom Method
I got custom form field with several custom methods in it, i want to access utility injections ($get, $set, etc.) on my custom methods. i tried
MyCustomForm::make('name')
->myCustomMethod(fn(callable $get) => $get('other_name'))
MyCustomForm::make('name')
->myCustomMethod(fn(callable $get) => $get('other_name'))
but got error that paramater $get is not passed.
8 replies