mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
14 lines
No EOL
645 B
Markdown
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 |