mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
611 B
611 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| You can manually set the relation of a model using `setRelation` method | 1555543660678156288 | weekly-thread-2022-31 | freekmurze |
|
2022-08-05T13:18:03+00:00 | 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