Two small Laravel features, the tap() helper and higher-order collection messages, quietly remove a surprising amount of boilerplate from everyday code.
#Collections
Articles
Eight practical Laravel patterns that make your code read more like intent and less like implementation — from fluent helpers to conditional chains.
Most foreach loops in a Laravel app can be replaced with a single, more readable collection method. Here are seven that will clean up your code today.