Can we still use callable $get & callable $set?
In v2 I always prefer to do function (callable $get) because it saves me from having to do a Closure import or having that ugly \Closure but in v3 I read from the upgrade guide that there is now Get & Set classes, so can I still use callable $get & callable $set?
https://filamentphp.com/docs/3.x/panels/upgrade-guide#get-and-set-closure-parameters
1 Reply
Yes, I think you'll need to use the new
Get
and Set
types but I'm not sure. Have you tried with a callable
? You could also omit the type hint, that should work too.