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 2dd4944 commit f54cebfCopy full SHA for f54cebf
src/Console/ModelsCommand.php
@@ -639,7 +639,7 @@ public function getPropertiesFromMethods($model)
639
if (strpos(get_class($relationObj), 'Many') !== false) {
640
if ($relationObj instanceof BelongsToMany) {
641
$pivot = get_class($relationObj->newPivot());
642
- if ($pivot != 'Illuminate\Database\Eloquent\Relations\Pivot') {
+ if ($pivot !== Illuminate\Database\Eloquent\Relations\Pivot::class) {
643
$this->setProperty(
644
$relationObj->getPivotAccessor(),
645
$pivot,
0 commit comments