1 | <?php |
||
2 | |||
3 | namespace App\Mail; |
||
4 | |||
5 | use App\Models\User; |
||
6 | use Illuminate\Bus\Queueable; |
||
7 | use Illuminate\Contracts\Queue\ShouldQueue; |
||
8 | use Illuminate\Mail\Mailable; |
||
9 | use Illuminate\Queue\SerializesModels; |
||
10 | |||
11 | class SignUpWelcomeMail extends Mailable implements ShouldQueue |
||
12 | { |
||
13 | use Queueable, SerializesModels; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
14 | |||
15 | /** |
||
16 | * @var User |
||
17 | */ |
||
18 | public $user; |
||
19 | |||
20 | /** |
||
21 | * Create a new message instance. |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function __construct(User $user) |
||
26 | { |
||
27 | $this->user = $user; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Build the message. |
||
32 | * |
||
33 | * @return $this |
||
34 | */ |
||
35 | public function build() |
||
36 | { |
||
37 | return $this->subject('Welcome to '.config('app.name')) |
||
38 | ->markdown('emails.signup_welcome'); |
||
39 | } |
||
40 | } |
||
41 |