title: How to get Laravel 5.4 working with AWS SQS Queues
body: <p>I am using Laravel 5.4 with an SQS Fifo Queue. </p>
  
  <p>I can't seem to be able to get it working with my SQS Fifo Queue. To Queue my email job.</p>
  
  <p>Can anyone with experience of this point me in the right direction for how to get laravel working with my SQS Fifo Queue.</p>
  
  <p>This is my controller code to add the job to the queue:</p>
  
  <pre><code>(new ReferFriendEmail($referFriendObj))-&gt;onConnection('my_sqs_fifo');
  </code></pre>
  
  <p>This is the code of my job: </p>
  
  <pre><code>class ReferFriendEmail implements ShouldQueue
  {
      use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
  
      protected $referFriendObj = false;
  
      /**
       * Create a new job instance.
       *
       * @return void
       */
      public function __construct($referFriendObj)
      {
          $this-&gt;referFriendObj = $referFriendObj;
      }
  
      /**
       * Execute the job.
       *
       * @return void
       */
      public function handle(  )
      {
          $input = $this-&gt;referFriendObj-&gt;input;
  
          Mail::send( 'emails.refer-a-friend', 
              [
                  'user' =&gt; $this-&gt;referFriendObj-&gt;from_user_info,
                  'first_name' =&gt; strtoupper( trim( $this-&gt;referFriendObj-&gt;from_user_info-&gt;first_name)),
                  'unique_link' =&gt; $this-&gt;referFriendObj-&gt;unique_link,
              ],
              function ($m) use ( $input ) {
                      $m-&gt;from('ryan_hughes_smith@live.co.uk', 'Kuflink');
                      $m-&gt;to($input['to_email'], $input['to_email'] )-&gt;subject( "You've been referred to Kuflink by " . $input['first_name'] );
              }
          );
  
          Email_user_referrer::where('email' , $input['to_email'])
                              -&gt;update(['flag_email_sent' =&gt; 1]);
      }
  }
  </code></pre>
  
  <p>It just seems nothing is going sqs. I am using it as the driver.</p>