mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
570 B
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 |
|
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.