. */ declare(strict_types=1); namespace FireflyIII\Notifications\User; use FireflyIII\User; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; /** * Class UserRegistration */ class UserRegistration extends Notification { use Queueable; public function __construct() {} /** * @SuppressWarnings("PHPMD.UnusedFormalParameter") */ public function toArray(User $notifiable): array { return [ ]; } /** * @SuppressWarnings("PHPMD.UnusedFormalParameter") */ public function toMail(User $notifiable): MailMessage { return (new MailMessage()) ->markdown('emails.registered', ['address' => route('index')]) ->subject((string) trans('email.registered_subject')) ; } /** * @SuppressWarnings("PHPMD.UnusedFormalParameter") */ public function via(User $notifiable): array { // other settings will not be available at this point anyway. return ['mail']; } }