diff --git a/src/Illuminate/Database/Eloquent/Collection.php b/src/Illuminate/Database/Eloquent/Collection.php index 52fd821e9e64..015f37270543 100755 --- a/src/Illuminate/Database/Eloquent/Collection.php +++ b/src/Illuminate/Database/Eloquent/Collection.php @@ -557,7 +557,13 @@ public function getQueueableIds() */ public function getQueueableRelations() { - return $this->isEmpty() ? [] : array_intersect(...$this->map->getQueueableRelations()->all()); + if ($this->isEmpty()) { + return []; + } + + $relations = $this->map->getQueueableRelations()->all(); + + return count($relations) <= 1 ? $relations : array_intersect(...$relations); } /**