mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
640 B
640 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | ||
|---|---|---|---|---|---|---|---|---|
| Create traits for relationships you commonly use in your models to make your codebase cleaner, simpler, and more consistent ✨ | 1454133823210459140 | weekly-thread-2021-44 | jordankdalton |
|
2021-10-29T17:11:34+00:00 | create-traits-for-relationships-you-commonly-use-in-your-models-to-make-your-codebase-cleaner-simpler-and-more-consistent |
Laravel Tip: Abstract relations you commonly use to a trait. It’s a DRY approach that keeps your models thin.