Tech
PHP 8.5's Pipe Operator vs Laravel Collections: Where Piper Fits (And Where It Doesn't)
Originally published at hafiz.dev
PHP 8.5 shipped the pipe operator in November, and most Laravel developers shrugged. Why would we care about |> when collect()->filter()->map() has read top-to-bottom for a decade? Chained transformations are a solved problem in Laravel.
Then Spatie released Piper last month: a library that ports Laravel's collection and string helpers to standalone functions built specifically for the pipe operator. When the team that maintains 300+ L...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to