Skip to content

Commit f54cebf

Browse files
d3v2amfn
andauthored
Update src/Console/ModelsCommand.php
Co-authored-by: Markus Podar <[email protected]>
1 parent 2dd4944 commit f54cebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/ModelsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ public function getPropertiesFromMethods($model)
639639
if (strpos(get_class($relationObj), 'Many') !== false) {
640640
if ($relationObj instanceof BelongsToMany) {
641641
$pivot = get_class($relationObj->newPivot());
642-
if ($pivot != 'Illuminate\Database\Eloquent\Relations\Pivot') {
642+
if ($pivot !== Illuminate\Database\Eloquent\Relations\Pivot::class) {
643643
$this->setProperty(
644644
$relationObj->getPivotAccessor(),
645645
$pivot,

0 commit comments

Comments
 (0)