SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. namespace App\Mail;
  4.  
  5. use Illuminate\Bus\Queueable;
  6. use Illuminate\Mail\Mailable;
  7. use Illuminate\Queue\SerializesModels;
  8. use Illuminate\Contracts\Queue\ShouldQueue;
  9.  
  10. class SendPasswordRecoveryMail extends Mailable
  11. {
  12.     use Queueable, SerializesModels;
  13.  
  14.     public $user;
  15.  
  16.     /**
  17.      * Create a new message instance.
  18.      *
  19.      * @return void
  20.      */
  21.     public function __construct($user)
  22.     {
  23.         $this->user = $user;
  24.     }
  25.  
  26.     /**
  27.      * Build the message.
  28.      *
  29.      * @return $this
  30.      */
  31.     public function build()
  32.     {
  33.         return $this->view('email.usuario.recovery')
  34.             ->with(['user' => $this->user])
  35.             ->from($this->user->email)
  36.             ->subject('Acesso à recuperação de senha ' . $this->user->entidade->nome);
  37.     }
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top