<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class AccountNotification extends Notification
{
use Queueable;
public string $message;
public string $title;
public function __construct(string $message, string $title)
{
$this->message = $message;
$this->title = $title;
}
public function via($notifiable)
{
return ['database'];
}
public function toArray($notifiable)
{