wite
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace App\Notifications;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Notifications\Notification;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
class AccountUpdate extends Notification implements ShouldQueue {
|
||||
use Queueable;
|
||||
public function __construct(public string $subject, public string $message, public string $url) { $this->afterCommit(); }
|
||||
public function via(object $notifiable): array {return ['mail'];}
|
||||
public function toMail(object $notifiable): MailMessage {return (new MailMessage)->subject($this->subject)->line($this->message)->action('Open your account',$this->url);}
|
||||
}
|
||||
Reference in New Issue
Block a user