mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:54:03 +00:00
readability
This commit is contained in:
parent
3187a9c5a8
commit
a89d5bd5fa
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ class TenantPivot extends Pivot
|
||||||
static::saved(function (self $pivot) {
|
static::saved(function (self $pivot) {
|
||||||
$parent = $pivot->pivotParent;
|
$parent = $pivot->pivotParent;
|
||||||
|
|
||||||
if (($parent instanceof Syncable) && $parent->shouldSync()) {
|
if ($parent instanceof Syncable && $parent->shouldSync()) {
|
||||||
$parent->triggerSyncEvent();
|
$parent->triggerSyncEvent();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue