File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -714,13 +714,12 @@ public function getPropertiesFromMethods($model)
714714 if ($ relationObj instanceof BelongsToMany) {
715715 $ pivot = get_class ($ relationObj ->newPivot ());
716716 if (!in_array ($ pivot , [Pivot::class, MorphPivot::class])) {
717-
718717 $ pivot = $ this ->getClassNameInDestinationFile ($ model , $ pivot );
719718
720- if ($ existingPivot = ($ this ->properties [$ relationObj ->getPivotAccessor ()] ?? null )){
719+ if ($ existingPivot = ($ this ->properties [$ relationObj ->getPivotAccessor ()] ?? null )) {
721720 // If the pivot is already set, we need to append the type to it
722- $ pivot .= '| ' . $ existingPivot ['type ' ];
723- } else {
721+ $ pivot .= '| ' . $ existingPivot ['type ' ];
722+ } else {
724723 // pivots are not always set
725724 $ pivot .= '|null ' ;
726725 }
You can’t perform that action at this time.
0 commit comments