madbob/GASdottoNG

View on GitHub
code/app/Notifications/ApprovedMessage.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;
use App\Notifications\Concerns\MailFormatter;

class ApprovedMessage extends ManyMailNotification implements ShouldQueue
{
    use Queueable, MailFormatter;

    public function toMail($notifiable)
    {
        $message = $this->initMailMessage($notifiable);
        return $this->formatMail($message, $notifiable, 'approved');
    }
}