First Class Callables were first introduced in PHP 8.1, but they're still quite rare to see in the wild. If you know how to use them, they actually allow for some very clean refactoring, especially when working with Collections. Let me show you an example!
A Pro subscription is required to watch this lesson.
For a small fee, get access to this episode and hundreds of hours of educational content from leading Laravel developers.
“Laracasts taught me more in one month than two years at university. Truly essential.
