app/Notifications/ResetPasswordJP.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
@return \Illuminate\Notifications\Messages\MailMessage
Get the mail representation of the notification . @param mixed $notifiable @return \ Illuminate \ Notifications \ Messages \ MailMessage
public function toMail($notifiable)
    {
        if (static::$toMailCallback) {
            return call_user_func(static::$toMailCallback, $notifiable, $this->token);
        }
        return (new MailMessage)
            ->subject(Lang::get('mail.password_reset.subject'))
            ->line(Lang::get('mail.password_reset.line_01'))
            ->action(Lang::get('mail.password_reset.action'), url(config('app.url').route('password.reset', ['token' => $this->token, 'email' => $notifiable->getEmailForPasswordReset()], false)))
            ->line(Lang::get('mail.password_reset.line_02', ['count' => config('auth.passwords.'.config('auth.defaults.passwords').'.expire')]))
            ->line(Lang::get('mail.password_reset.line_03'));
    }
public function toMail ( $ notifiable ) { if ( static :: $ toMailCallback ) { return call_user_func ( static :: $ toMailCallback , $ notifiable , $ this -> token ) ; } return ( new MailMessage ) -> subject ( Lang :: get ( 'mail.password_reset.subject' ) ) -> line ( Lang :: get ( 'mail.password_reset.line_01' ) ) -> action ( Lang :: get ( 'mail.password_reset.action' ) , url ( config ( 'app.url' ) . route ( 'password.reset' , [ 'token' => $ this -> token , 'email' => $ notifiable -> getEmailForPasswordReset ( ) ] , false ) ) ) -> line ( Lang :: get ( 'mail.password_reset.line_02' , [ 'count' => config ( 'auth.passwords.' . config ( 'auth.defaults.passwords' ) . '.expire' ) ] ) ) -> line ( Lang :: get ( 'mail.password_reset.line_03' ) ) ; }
Get the mail representation of the notification.
Get the mail representation of the notification .
//        return (new MailMessage) //                    ->line('The introduction to the notification.') //                    ->action('Notification Action', url('/')) //                    ->line('Thank you for using our application!'); //        if (static::$createUrlCallback) { //            $url = call_user_func(static::$createUrlCallback, $notifiable, $this->token); //        } else { //            $url = url(config('app.url').route('password.reset', [ //                'token' => $this->token, //                'email' => $notifiable->getEmailForPasswordReset(), //            ], false)); //        } //            ->action(Lang::get('mail.password_reset.action'), $url)