madbob/GASdottoNG

View on GitHub
code/app/Notifications/NewUserNotification.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;

use App\Notifications\Concerns\ManyMailNotification;

class NewUserNotification extends ManyMailNotification implements ShouldQueue
{
    use Queueable;

    private $user = null;

    public function __construct($user)
    {
        $this->user = $user;
    }

    public function toMail($notifiable)
    {
        $message = $this->initMailMessage($notifiable);
        $message->subject(_i('Nuovo utente registrato'))->view('emails.newuser', ['user' => $this->user]);
        return $message;
    }
}