Closed mokhosh closed 4 weeks ago
Hi, this is a feature request, and not something I'm going to prioritise at the moment. We do not use Laravel's container to evaluate closures as we added many new features to our implementation. I would accept a PR for v4.
@danharrin would you add this to v3 if we use the Laravel container as the last fallback?
It is about the amount of time it takes for me to review new features for v3, not about breaking changes in this case
ok fair enough.
Package
filament/filament
Package Version
v3.2.119
Laravel Version
v11.4.0
Livewire Version
v3.5.0
PHP Version
8.3.12
Problem description
You can't pass in Laravel Contextual Attributes into closures:
Both of the above models will be the
Table
record, and if you don't type-hintadmin
it will not resolve and will throw an exception. So, you have to do something like this:Expected behavior
You should be able to pass Contextual Attributes into closures.
Steps to reproduce
evaluate
method.Reproduction repository (issue will be closed if this is not valid)
https://github.com/mokhosh/filament-contextual-attr-bug
Relevant log output
No response
Donate 💰 to fund this issue