40 lines
863 B
PHP
40 lines
863 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use App\Mail\MailableBase;
|
|
use App\Mail\UserActivationRequired as UserActivationRequiredMailable;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
class UserActivationRequired extends Notification
|
|
{
|
|
use Queueable;
|
|
use DatabaseEmailNotification;
|
|
|
|
/**
|
|
* Create a new notification instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Get the mail representation of the notification.
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return \Illuminate\Notifications\Messages\MailMessage|MailableBase
|
|
*/
|
|
public function toMail($notifiable)
|
|
{
|
|
$mailable = new UserActivationRequiredMailable($notifiable);
|
|
|
|
$this->setPropertiesOnMailable($mailable, $notifiable);
|
|
|
|
return $mailable;
|
|
}
|
|
}
|