src/Notifications/SendOtpNotification.php
/**
     * Get the mail representation of the notification.
     *
     * @param  mixed  $notifiable
     *
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
Get the mail representation of the notification.
@param  mixed  $notifiable


Get the mail representation of the notification . @param mixed $notifiable
public function toMail($notifiable)
    {
        return (new MailMessage())
            ->subject(config('otp.mail.subject'))
            ->greeting('Hello ' . $notifiable->name . ',')
            ->line('Your new OTP Code is')
            ->line('**' . $this->otpCode . '**');
    }
public function toMail ( $ notifiable ) { return ( new MailMessage ( ) ) -> subject ( config ( 'otp.mail.subject' ) ) -> greeting ( 'Hello ' . $ notifiable -> name . ',' ) -> line ( 'Your new OTP Code is' ) -> line ( '**' . $ this -> otpCode . '**' ) ; }
Get the mail representation of the notification.
Get the mail representation of the notification .