1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00

Merge pull request #2 from iantasker/patch-1

Fix text encoding issue
This commit is contained in:
Samuel Štancl 2021-04-13 19:06:13 +02:00 committed by GitHub
commit 41f7c4eae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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