Always with the goal of improving my way of writing code, I discovered a few years ago Adam Wathan and his book Refactoring to Collections. And suf...
For further actions, you may consider blocking this person and/or reporting abuse
Adding Arrow functions and First Class Callable Syntax:
Thank you π
I donβt do it because the problem is still the same, the order of the instructions is still weird with array functions.
Laravel collections don't solve anything in terms of iterations in the code, they simply change the place of the loops, and in many cases in a much less efficient way. I only use Laravel Collections with my own data in a few places in a controlled way. When you work with large amounts of data they are a huge bottleneck.