Examples of Collection Methods: Pipe (1)

Short information about pipe

The pipe method passes the collection to the given closure and returns the result of the executed closure.
Read more in the official Laravel docs.

Repository: spatie/dashboard.spatie.be (Github)
★ 1906 Created: Jun 2017 Updated: Apr 2021 Laravel version: 8
Files in the example:
- app/Tiles/Statistics/Commands/FetchPackagistTotalsCommand.php