/
home
/
sditechnicalteam
/
www
/
app
/
Notifications
/
File Upload :
llllll
Current File: /home/sditechnicalteam/www/app/Notifications/TwoFactorCode.php
<?php namespace App\Notifications; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Support\HtmlString; class TwoFactorCode extends BaseNotification { /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ //phpcs:ignore public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable): MailMessage { $this->company = $notifiable->company; $twoFaCode = '<p style="color:#1d82f5"><strong>' . $notifiable->two_factor_code . '</strong></p>'; return parent::build() ->greeting(__('email.hello') . ' ' . mb_ucwords($notifiable->name) . ',') ->line(__('email.twoFactor.line1')) ->line(new HtmlString($twoFaCode)) ->line(__('email.twoFactor.line2')) ->line(__('email.twoFactor.line3')); } }
Copyright ©2k19 -
Hexid
|
Tex7ure