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 b10515b + 5fa5f31 commit 4aebd78Copy full SHA for 4aebd78
src/Console/ModelsCommand.php
@@ -729,7 +729,7 @@ public function getPropertiesFromMethods($model)
729
$pivot = $this->getClassNameInDestinationFile($model, $pivot);
730
731
if ($existingPivot = ($this->properties[$relationObj->getPivotAccessor()] ?? null)) {
732
- if(!str_contains($existingPivot['type'], $pivot . '|')) {
+ if (!str_contains($existingPivot['type'], $pivot . '|')) {
733
// If the pivot is already set, we need to append the type to it
734
$pivot .= '|' . $existingPivot['type'];
735
} else {
0 commit comments