Posted: 16-08-2017

Laravel’s tap, “higher order” tap, and collection tap

Laravel’s tap, “higher order” tap, and collection tap

Matt Stauffer  from https://mattstauffer.co wrote this nice introduction about laravel tap function.

Tap function are availiable on the new laravel 5.5 release and 5.4 too.

For more examples  about  to use tap you can also  watching the laracast video Higher Order Tap from  What's New in Laravel 5.5 series