diff --git a/src/Illuminate/Bus/PendingBatch.php b/src/Illuminate/Bus/PendingBatch.php index 7eab4e36112f..e9bec486292d 100644 --- a/src/Illuminate/Bus/PendingBatch.php +++ b/src/Illuminate/Bus/PendingBatch.php @@ -54,6 +54,19 @@ public function __construct(Container $container, Collection $jobs) $this->jobs = $jobs; } + /** + * Add jobs to the batch. + * + * @param array $jobs + * @return $this + */ + public function add($jobs) + { + $this->jobs->push($jobs); + + return $this; + } + /** * Add a callback to be executed after all jobs in the batch have executed successfully. *