You can manually set the relation of a model using `setRelation` method

You can manually set the relation of a model using `setRelation` method

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

We're writing a book, you can get it for free here.