Use whereBelongsTo() and relation()->is() instead of comparing ids manually
- ·
- Telegram
- ·
- Newsletter
🔥 Tip: You don't have to use "related_id"-type columns in database queries or value comparisons.
Laravel understands your relations and lets you write much cleaner code.