title: Laravel | Passing variable in Notify
body: <p>I want to send a mail to Notify, it works but when I try to put the variables, It returns that they are undefined. I don't understand how to pass a variable to Notify, I tried to do <code>-&gt;withResult($result)</code> but it didn't work out.
  Here is the controller:</p>
  
  <pre><code>    $result = Review::where('user_hash', '=', $data['lname_c'])-&gt;where('email', $data['email_c'])-&gt;orderBy('created_at', 'desc')-&gt;first();
      $result-&gt;notify(new SendReview());
  </code></pre>
  
  <p>And my SendReview.php notifications:  </p>
  
  <pre><code>public function toMail($notifiable)
  {
  
      return $result['invitation_id']; // test to check if variable is passed
      return (new MailMessage)
                  -&gt;line('Test.')
                  -&gt;action('Nani', url($url))
                  -&gt;line('Thank you');
  }
  </code></pre>
  
  <p>There is user_hash and invitation_id in my Review table, I want to pass them to the notify.  When I do <code>return $result['invitation_id'];</code> it works. Hope I am understandable, I checked for duplicate questions and couldn't find one.</p>