1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/this-wont-fit-into-one-tweet-but-theres-so-much-cool-stuff-you-can-do-with-eloquent.md
2021-04-07 20:16:47 +02:00

14 lines
No EOL
570 B
Markdown

---
title: 'This won''t fit into one tweet but there''s so much cool stuff you can do with Eloquent'
tweet_id: '1308134105389953024'
thread_slug: 1-rt-1-tip
author_username: samuelstancl
images:
- 'https://pbs.twimg.com/media/Eidq5A3XsAAM9lA.png'
created_at: 2020-09-21T20:00:49+00:00
slug: this-wont-fit-into-one-tweet-but-theres-so-much-cool-stuff-you-can-do-with-eloquent
---
You DON'T have to go raw SQL when you hit a performance issue with Eloquent. There's so many "secret" techniques.
Example: You can create scopes to add specific selects to your queries.