PHP 8.5 introduces support for closures in constant expressions, making it possible to define a default attribute value as a Closure, among other use-cases. Learn how this update also enables closures to be passed to PHP attributes.
The post Support for Closures in Constant Expressions in PHP 8.5 appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.