mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
517 B
517 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| Use Eloquent scopes to clean up complex relation queries | 1487081935478276103 | weekly-thread-2022-04 | archtechx |
|
2022-01-28T15:15:36+00:00 | use-eloquent-scopes-to-clean-up-complex-relation-queries |
🔥 Eloquent scopes pair very well with complex relation queries
Scopes should also have @method annotations. They make the model more self-documenting & better supported in IDEs