Skip to content

Commit

Permalink
fix adding to pending batch
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 8, 2021
1 parent 80f0112 commit 108385b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Bus/PendingBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public function __construct(Container $container, Collection $jobs)
*/
public function add($jobs)
{
$this->jobs->push($jobs);
foreach ($jobs as $job) {
$this->jobs->push($job);
}

return $this;
}
Expand Down

0 comments on commit 108385b

Please sign in to comment.