mirror of
				https://github.com/brunofontes/shareit.git
				synced 2025-10-28 08:51:06 -03:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			661 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			661 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Mail;
 | |
| 
 | |
| use \App\User;
 | |
| use \Lang;
 | |
| use Illuminate\Bus\Queueable;
 | |
| use Illuminate\Mail\Mailable;
 | |
| use Illuminate\Queue\SerializesModels;
 | |
| 
 | |
| class Welcome extends Mailable
 | |
| {
 | |
|     public $user; //Keep this public to be accessed directly from the view.
 | |
|     use Queueable, SerializesModels;
 | |
| 
 | |
|     /**
 | |
|      * Create a new message instance.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function __construct(User $user)
 | |
|     {
 | |
|         $this->user = $user;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Build the message.
 | |
|      *
 | |
|      * @return $this
 | |
|      */
 | |
|     public function build()
 | |
|     {
 | |
|         return $this->subject(Lang::get('Welcome'))->markdown('emails.welcome');
 | |
|     }
 | |
| }
 |