mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
commit
41f7c4eae1
1 changed files with 2 additions and 2 deletions
|
|
@ -9,6 +9,6 @@ created_at: 2020-09-21T16:42:13+00:00
|
|||
slug: when-a-relationship-is-already-loaded-and-cached-on-the-model-instance-youll-have-to-refresh-it
|
||||
---
|
||||
|
||||
`$domain->refresh();` to refresh its attributes
|
||||
`$domain->refresh();` to refresh its attributes
|
||||
|
||||
`$tenant->load('primary_domain');` to update the `primary_domain` relationship on the $tenant instance
|
||||
`$tenant->load('primary_domain');` to update the `primary_domain` relationship on the $tenant instance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue