123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace App\Notifications;
- use Illuminate\Bus\Queueable;
- use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
- class Verification extends Notification
- {
- use Queueable;
- private $code;
- public function __construct($code)
- {
- $this->code = $code;
- }
- public function via($notifiable)
- {
- return ['mail'];
- }
- public function toMail($notifiable)
- {
- return (new MailMessage)
- ->subject(trans('notification.verification_account'))
- ->line(trans('notification.verification'))
- ->line($this->code);
- }
- public function toArray($notifiable)
- {
- return [
- //
- ];
- }
- }
|