Skip to content

Beautiful Open-Source Form Builder

730 B
Raw Blame
<?php

namespace App\Mail;

use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class UserUnblockedEmail extends Mailable
{
    use Queueable;
    use SerializesModels;

    public User $user;
    public string $reason;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct(User $user, string $reason)
    {
        $this->user = $user;
        $this->reason = $reason;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->subject('Your account has been unblocked')
            ->markdown('mail.user.unblocked');
    }
}