Skip to content

Commit

Permalink
Update chain method
Browse files Browse the repository at this point in the history
  • Loading branch information
SabatinoMasala committed Aug 14, 2024
1 parent 2ae315c commit e6a3735
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Bus/Queueable.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ public function through($middleware)
*/
public function chain($chain)
{
$this->chained = collect($chain)->map(function ($job) {
$jobs = ChainedBatch::prepareNestedBatches(collect($chain));

$this->chained = $jobs->map(function ($job) {
return $this->serializeJob($job);
})->all();

Expand Down

0 comments on commit e6a3735

Please sign in to comment.