title: Send token to reset password via email in url [Laravel Passport]
body: <p>I have a method to send an email in case the user loses their password, the email is sent and I have configured a notification for a custom url in an Angular view. But my question is about how I can send the token in the url, for example <code>http://localhost:4200/password?token={TOKEN}</code> or another similar way. So far i have this:</p>
  <pre><code>&lt;?php
  
  namespace App\Notifications;
  
  use Illuminate\Bus\Queueable;
  use Illuminate\Contracts\Queue\ShouldQueue;
  use Illuminate\Notifications\Messages\MailMessage;
  use Illuminate\Notifications\Notification;
  use Illuminate\Support\Facades\Lang;
  
  class MailResetPasswordToken extends Notification
  {
      use Queueable;
      public $token;
  
      public function __construct($token)
      {
          $this-&gt;token = $token;
      }
  
      public function via($notifiable)
      {
          return ['mail'];
      }
  
      public function toMail($notifiable)
      {
          return (new MailMessage)
          -&gt;subject(Lang::get('Change password'))
            -&gt;line('You are receiving this email because we received a password reset request for your account.')
           -&gt;action('Reset Password', url('http://localhost:4200',[$this-&gt;token], false))
           -&gt;line('If you did not request a password reset, no further action is required.');           
           -&gt;action('Reset Password', url(config('app.url').route('password.reset', [$this-&gt;token, $notifiable-&gt;email], false)))
     
      }
  
      public function toArray($notifiable)
      {
          return [
              //
          ];
      }
  }
  </code></pre>