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

14 lines
No EOL
645 B
Markdown

---
title: 'You can convert an Eloquent collection back to an Eloquent Query builder'
tweet_id: '1502367767231537152'
thread_slug: weekly-thread-2022-10
author_username: iamharis010
images:
- 'https://pbs.twimg.com/media/FNYYjjNVkAIEwQW.jpg'
created_at: 2022-03-11T19:36:03+00:00
slug: 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