Laravel's Fluent Class Goes Iterable: Cleaner Loops Ahead
The Fluent class in Laravel now implements the Iterable contract, eliminating the need for toArray() calls in foreach loops. It's a small change that makes a big difference in code cleanliness.
From Verbose to Natural
Previously, iterating over Fluent objects required an explicit toArray() call, which felt unnecessary