Laravel Collections or Foreach? Shorter? More Readable?

I want to raise a discussion. Laravel Collections allow you to avoid writing loops, also chaining the methods to make the code shorter. But is it really better or more readable? Let’s discuss this. Resources mentioned: - My original tweet: - Adam Wathan’s book “Refactoring to Collections“: - Christoph Rumpel “How I refactor to collections“:
Back to Top