Added morphTo to list of singular relations (#3809)
Credit to @SeriousKen. Fixes #3807
This commit is contained in:
parent
4438ddc47e
commit
9d8416e178
|
|
@ -63,7 +63,7 @@ trait FormModelSaver
|
|||
}
|
||||
|
||||
$attributesToPurge = [];
|
||||
$singularTypes = ['belongsTo', 'hasOne', 'morphOne'];
|
||||
$singularTypes = ['belongsTo', 'hasOne', 'morphTo', 'morphOne'];
|
||||
|
||||
foreach ($saveData as $attribute => $value) {
|
||||
$isNested = $attribute == 'pivot' || (
|
||||
|
|
|
|||
Loading…
Reference in New Issue