© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
morty

What does `->evaluate()` do?

I see this all over the code base but not really understanding entirely what it's doing. Can someone explain?
Solution
It handles callbacks that are passed into methods. Ie, if you pass a closure in to something like ->required() the evaluate will run that closure when using $isRequired() in a blade view for example. It also handles dependency injection.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

what does ->prose do?
FilamentFFilament / ❓┊help
3y ago
What does the `->default()` method do on the panel service provider?
FilamentFFilament / ❓┊help
3y ago
What does this error mean?
FilamentFFilament / ❓┊help
9mo ago
What does persistFiltersInSession and deferFilters actually mean?
FilamentFFilament / ❓┊help
2y ago