Use tap() to do something with the object and immediately return it

Use tap() to do something with the object and immediately return it

Use the @laravelphp's "tap()" function to do something with an object, and then return the object itself. 🧋

We're writing a book, you can get it for free here.