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 970a10a commit 5fa5f31Copy full SHA for 5fa5f31
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