--- title: 'Use tap() to do something with the object and immediately return it' tweet_id: '1498010800098734081' thread_slug: weekly-thread-2022-08 author_username: enunomaduro images: - 'https://pbs.twimg.com/media/FMMN_6wXsAMmS_e.jpg' created_at: 2022-02-27T19:03:01+00:00 slug: 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. 🧋