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 42210c7 commit 17daa1eCopy full SHA for 17daa1e
src/Illuminate/Database/Eloquent/Relations/BelongsTo.php
@@ -175,7 +175,7 @@ protected function getEagerModelKeys(array $models)
175
// fail plus returns zero results, which should be what the developer expects.
176
if (count($keys) === 0) {
177
return [$this->related->getIncrementing() &&
178
- $this->related->getKeyType() === 'int' ? 0 : null];
+ $this->related->getKeyType() === 'int' ? 0 : null, ];
179
}
180
181
return array_values(array_unique($keys));
0 commit comments