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/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

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
2020-09-21T20:00:49+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.