You can manually set the relation of a model using `setRelation` method
- ·
- Telegram
- ·
- Newsletter
Eloquent’s setRelation
is a very powerful method when used well. Here’s how I used it to solve a performance problem in @OhDearApp
https://freek.dev/2311-increase-performance-by-using-eloquents-setrelation-method
#laravel #php #performance