mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
561 B
561 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| When a relationship is already loaded and "cached" on the model instance, you'll have to refresh it | 1308084124947820554 | 1-rt-1-tip | samuelstancl |
|
2020-09-21T16:42:13+00:00 | when-a-relationship-is-already-loaded-and-cached-on-the-model-instance-youll-have-to-refresh-it |
$domain->refresh(); to refresh its attributes
$tenant->load('primary_domain'); to update the primary_domain relationship on the $tenant instance