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.
2 parents 8b4348a + ce93b59 commit 62b502dCopy full SHA for 62b502d
src/Console/ModelsCommand.php
@@ -730,8 +730,13 @@ public function getPropertiesFromMethods($model)
730
731
if ($existingPivot = ($this->properties[$relationObj->getPivotAccessor()] ?? null)) {
732
$existingClasses = explode('|', $existingPivot['type']);
733
+<<<<<<< HEAD
734
if(!in_array($pivot, $existingClasses)) {
735
array_unshift($existingClasses, $pivot);
736
+=======
737
+ if (!in_array($pivot, $existingClasses)) {
738
+ $existingClasses = [$pivot, ...$existingClasses];
739
+>>>>>>> ce93b596b7b5bbbb9b5df0d4fa310a015c92c3b0
740
}
741
} else {
742
// No existing pivot property, so we need to add a null type
0 commit comments