We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf4137 commit 0dbd0f7Copy full SHA for 0dbd0f7
src/Concerns/HasDrafts.php
@@ -197,7 +197,6 @@ public function setLive(): void
197
switch (true) {
198
case $relation instanceof HasOne:
199
if ($related = $this->{$relationName}) {
200
-
201
$replicated = $related->replicate();
202
203
$method = method_exists($replicated, 'getDraftableAttributes') ? 'getDraftableAttributes' : 'getAttributes';
@@ -208,7 +207,6 @@ public function setLive(): void
208
207
break;
209
case $relation instanceof HasMany:
210
$this->{$relationName}()->get()->each(function ($model) use ($published, $relationName) {
211
212
$replicated = $model->replicate();
213
214
0 commit comments