Create traits for relationships you commonly use in your models to make your codebase cleaner, simpler, and more consistent ✨
- ·
- Telegram
- ·
- Newsletter
Laravel Tip: Abstract relations you commonly use to a trait. It’s a DRY approach that keeps your models thin.