verifyUser = $verifyUser; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ 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) { $verifyUser = $this->verifyUser; $url = url('/user/verify/'.$verifyUser->token); $greeting = sprintf('Greetings %s!', $notifiable->name); return (new MailMessage) ->greeting($greeting) ->subject("Email Verification") ->line('Please verify your email to complete your registration with Exchange.') ->action('Verify Your Email', $url) ->line('Thank you for using our application!'); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } }