mercredi 26 juillet 2017

Laravel reset password form is duplicated

i changed laravel 5.4 reset password email subject and contents with notifications. but now when i click on reset password button or link, the reset form is duplicated

my form:

class ResetPassword extends Notification
{
use Queueable;
public $token;

public function __construct($token)
{
    $this->token = $token;
}


public function via($notifiable)
{
    return ['mail'];
}



public function toMail($notifiable)
{
    return (new MailMessage)
        ->subject('its sub')
        ->line('You are receiving this email because we received a password reset request for your account.')
        ->action('Reset Password', url('password/reset', $this->token))
        ->line('If you did not request a password reset, no further action is required.');
}

/**
 * Get the array representation of the notification.
 *
 * @param  mixed  $notifiable
 * @return array
 */
public function toArray($notifiable)
{
    return [
        //
    ];
}
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire