Something went wrong. Try again.
Store your seeds
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354<?php
declare(strict_types=1);
namespace App\Notifications\User;
use Illuminate\Bus\Queueable;use Illuminate\Contracts\Queue\ShouldQueue;use Illuminate\Notifications\Messages\MailMessage;use Illuminate\Notifications\Notification;
class EmailUpdated extends Notification implements ShouldQueue{ use Queueable;
/** * Create a new notification instance. */ public function __construct(protected string $email, protected int $otp) {}
/** * Get the notification's delivery channels. * * @return array<int, string> */ public function via(object $notifiable): array { return ['mail']; }
/** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { return (new MailMessage) ->greeting('Hello from seed') ->line('Your current email address has been changed to '.$this->email) ->line('Use the otp '.$this->otp.' to proceed with the change'); }
/** * Get the array representation of the notification. * * @return array<string, mixed> */ public function toArray(object $notifiable): array { return [ // ]; }}