---
title: "How to use Laravel&#039;s Job chaining — Franco Gilio"
description: "This is a personal one, I simply love how clean and simple this feature is. In the past, I&#039;ve had to implement job chaining and TBH the end result was pre…"
canonical: "https://publica.now/creators/franco-gilio/works/how-to-use-laravels-job-chaining"
---

      Literary # How to use Laravel's Job chaining

    [  FG  

Franco Gilio

 

 ](https://publica.now/creators/franco-gilio)      Follow     

 

   

    Free      [ Sign in to read now ](https://publica.now/access?redirect=%2Fcreators%2Ffranco-gilio%2Fworks%2Fhow-to-use-laravels-job-chaining)    

   

   Share Link copied  

  Format epub 

   Published Jan 26, 2018 

  Rating  No reviews yet  

 

 

 

   ![How to use Laravel's Job chaining](https://fls-a13cb2d7-1b3e-4883-a0bd-297afd110a11.367be3a2035528943240074d0096e0cd.r2.cloudflarestorage.com/works/01kqmk5rcqqn0jh4c1ppy2ppkd/cover.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=d29ce3bb571c165c97a702f29f7aee93%2F20260924%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20260924T211721Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=748c240b2069c2e96edb692b8da315e26a085ad65d03f55456195783fb6889fc)  

 ## About this work

This is a personal one, I simply love how clean and simple this feature is. In the past, I've had to implement job chaining and TBH the end result was pretty gross. It was a system that needed to take…

 

    Sample

## Take a look inside

  This is a personal one, I simply love how clean and simple this feature is. In the past, I've had to implement job chaining and TBH the end result was pretty gross. It was a system that needed to take a file and pass it through a series of steps, so nothing too complex. But, by the way the chain worked, every job was conscious about the next one in line (sans the last one, of course). But now, how Laravel does it allows us to completely decouple the jobs from each other. Yeah, I know, it's awesome. It looks like this: FirstJobToRun::withChain(\[ new SecondJobToRun, new ThirdJobToRun, new ForthJobToRun \])-&gt;dispatch();

So yes, it's that simple. But if you are like me, simple is never enough cause of course you have that one case in which you need to pass arguments to your jobs. So, how about that? Well, thankfully it's simple too. Here in this example I've taken the one from the official docs and added a simple parameter: ProcessPodcast::withChain(\[ new OptimizePodcast($podcast), new ReleasePodcast($podcast) \])-&gt;dispatch($podcast);

And that's all, now go read the official docs and then refactor all those tangled job chains that you've written before. Thank you to all those who worked on this. PD: Wouldn't it be really cool if we could just define common arguments for all jobs in a chain?

  

  

   [ Sign in to read now ](https://publica.now/access?redirect=%2Fcreators%2Ffranco-gilio%2Fworks%2Fhow-to-use-laravels-job-chaining)   

       [ #code ](/search?query=code) [ #tutorials ](/search?query=tutorials)  

 ## Reviews

  No reviews yet. Be the first to share your thoughts.  

  [Sign in to leave a review](https://publica.now/access?redirect=%2Fcreators%2Ffranco-gilio%2Fworks%2Fhow-to-use-laravels-job-chaining)

   No reviews yet. Be the first to share your thoughts.

 

  

 

 

 

    More from Franco Gilio

## Works

  

  [See all →](/creators/franco-gilio)  

  [  ![Cherry-picking your way out of trouble](https://fls-a13cb2d7-1b3e-4883-a0bd-297afd110a11.367be3a2035528943240074d0096e0cd.r2.cloudflarestorage.com/works/01kmn1mt2d7vkaxf4027gn5mb8/cover.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=d29ce3bb571c165c97a702f29f7aee93%2F20260924%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20260924T211722Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=9c4569028d5fb243098277993628d087898e0b2dbb26da223bcc7519397e8ffc)   Literary    

### Cherry-picking your way out of trouble

   Franco Gilio     Free      99 

   

 ](/creators/franco-gilio/works/cherry-picking-your-way-out-of-trouble) [  ![Going static, 2026 edition](https://fls-a13cb2d7-1b3e-4883-a0bd-297afd110a11.367be3a2035528943240074d0096e0cd.r2.cloudflarestorage.com/works/01kqmk5pjda9hrrmhe9c7r8hfr/cover.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=d29ce3bb571c165c97a702f29f7aee93%2F20260924%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20260924T211722Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=496bab1e92e6454d8a1a065de2762e60bd6d95b3f4d525e0590590d176c328ad)   Literary    

### Going static, 2026 edition

   Franco Gilio     Free      59 

   

 ](/creators/franco-gilio/works/going-static-2026-edition) [  ![Going static, 2026 edition](https://fls-a13cb2d7-1b3e-4883-a0bd-297afd110a11.367be3a2035528943240074d0096e0cd.r2.cloudflarestorage.com/works/01kqmvw1ts32872f2g8j91zj6c/cover.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=d29ce3bb571c165c97a702f29f7aee93%2F20260924%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20260924T211722Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=532792508d3c391531797d3e8f7923acaf905f9d58d7e38fc421d7919e6b3f4a)   Literary    

### Going static, 2026 edition

   Franco Gilio     Free      63 

   

 ](/creators/franco-gilio/works/going-static-2026-edition-1) [  ![Going static](https://fls-a13cb2d7-1b3e-4883-a0bd-297afd110a11.367be3a2035528943240074d0096e0cd.r2.cloudflarestorage.com/works/01kqmk5pvmykqf5z0ta58hgyb5/cover.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=d29ce3bb571c165c97a702f29f7aee93%2F20260924%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20260924T211722Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=dd4ab69c38f7cd74c3907eece49ea856cbe5cb96177b6ab89520d398aad094af)   Literary    

### Going static

   Franco Gilio     Free      57 

   

 ](/creators/franco-gilio/works/going-static)  

  



  Free  

  [ Sign in to read now ](https://publica.now/access?redirect=%2Fcreators%2Ffranco-gilio%2Fworks%2Fhow-to-use-laravels-job-chaining)
