How-to articles, tricks, and solutions about RELATIONSHIP
Laravel Eloquent - Attach vs Sync
Here's an example that demonstrates the difference between using attach() and sync() in Laravel Eloquent:
Laravel orderBy on a relationship
In Laravel, you can use the orderBy method on a relationship to sort the results of the relationship by a given column.