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/you-can-convert-an-eloquent-collection-back-to-an-eloquent-query-builder.md
Samuel Štancl 4af817e2b0 Week 10
2022-03-12 23:01:24 +01:00

645 B

title tweet_id thread_slug author_username images created_at slug
You can convert an Eloquent collection back to an Eloquent Query builder 1502367767231537152 weekly-thread-2022-10 iamharis010
https://pbs.twimg.com/media/FNYYjjNVkAIEwQW.jpg
2022-03-11T19:36:03+00:00 you-can-convert-an-eloquent-collection-back-to-an-eloquent-query-builder

#Laravel Tip 🔥 : In some situation you might want to update all the models inside the eloquent collection. You can do that easily in Laravel using toQuery() method. Laravel is utilizing #PHP like a pro. See how can you do that 👇

#webdevelopers #100DaysOfCode #developers