1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/use-tap-to-do-something-with-the-object-and-immediately-return-it.md
2022-02-28 08:45:52 +01:00

465 B

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