| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?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)
- ->line(trans('notification.verification_limit', ['minutes' => config('tasks.close.verify')]));
- }
- public function toArray($notifiable)
- {
- return [
- //
- ];
- }
- }
|