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