title: Laravel - Passing Request to Queue Job
body: <p>I'm unable to pass a request to queue <code>handle()</code> job</p>
  
  <pre><code> public function handle(Request $request)                                                                                                                                 |  package.json*
   {                                                                                                                                                                |  phpunit.xml*
       Log::alert('starting process');                                                                                                                              |  readme.md*
       Log::alert($request);                                                                                                                                        |  server.php*
                                                                                                                                                                    |~
       if (strpos($request-&gt;status, 'Approved') !== false) {                                                                                                        |~
           $name = Name::where('mId', '=', $request-&gt;mId)-&gt;get()-&gt;first();                                                                                          |~
                                                                                                                                                                    |~
           $client = new Client();                                                                                                                                  |~
                                                                                                                                                                    |~
           $client-&gt;request('POST', 'http://127.0.0.1:5000/api/email', [                                                                                                                                                                                                                                            |~
               'json' =&gt; [                                                                                                                                          |~
                   'type' =&gt; $request-&gt;type,                                                                                                                        |~
                   'name' =&gt; $name-&gt;name,                                                                                                                  
               ]                                                                                                                                                    |~
           ]);                                                                                                                                                      |~
       }
  </code></pre>
  
  <p>As it is, <code>$request</code> comes empty. If I remove <code>Request</code> and only leave <code>handle($request)</code> I get this stack: </p>
  
  <p><code>Too few arguments to function App\Jobs\PostAlfred::handle(), 0 passed and exactly 1 expected in</code></p>
  
  <p>I'm calling this function from the controller when the form is updated.</p>
  
  <pre><code> public function update(UpdateRequest $request)                                                                                                                   |▸ vendor/
   {                                                                                                                                                                |  artisan*
       $redirect_location = parent::updateCrud($request);                                                                                                           |  composer.json*                                                                               |  composer.lock*
       PostMyJob::dispatch($request);
  </code></pre>
  
  <p>I tried adding <code>UpdateRequest</code>, such as this: <code>handle(UpdateRequest $request)</code>, then I get an authorization error.</p>
  
  <p>Not sure how to proceed.</p>