1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +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-06 18:27:18 +02:00

570 B

title tweet_id thread_slug author_username images created_at slug
This won't fit into one tweet but there's so much cool stuff you can do with Eloquent 1308134105389953024 1-rt-1-tip samuelstancl
https://pbs.twimg.com/media/Eidq5A3XsAAM9lA.png
2021-04-06T16:07:46+00:00 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.