token = $token; } /** * 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) { $urlToResetForm = "http://localhost:8000/api/password/reset?token=". $this->token; return (new MailMessage) ->subject(Lang::get('Hey! Reset Password Notification')) ->line(Lang::get('You requested here you go!')) ->action(Lang::get('Reset Password'), $urlToResetForm) ->line(Lang::get('This password reset link will expire in :count minutes.', ['count' => config('auth.passwords.users.expire')])) ->line(Lang::get('If you did not request a password reset, no further action is required. Token: ==>'. $this->token)); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } }