How to override method to confirm registration?

Customizing registration.

error
Declaration of App\User::sendEmailVerificationNotification($token)
should be compatible with Illuminate\Foundation\Auth\User::sendEmailVerificationNotification()


User.php

namespace App;

use Illuminate\Notifications\is a notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\Authenticatable as User;
use App\Notifications\ResetPassword as ResetPasswordNotification;
use App\Notifications\CustomVerifyEmail as CustomVerifyEmailNotification;

class User extends implements Authenticatable MustVerifyEmail
{
 the use is a notifiable;

 public function sendPasswordResetNotification($token)
{

 $this->notify(new ResetPasswordNotification($token));
}

 public function sendEmailVerificationNotification($token)
{
 $this->notify(new CustomVerifyEmailNotification($token));
 }


That means it should be compatible, I don't understand?

Method sendPasswordResetNotification password reset works, and sendEmailVerificationNotification not working

Looked custom classes ResetPassword and CustomVerifyEmailin the Notifications folder, they committed the same token arrives.
March 23rd 20 at 19:25
0 answer

Find more questions by tags PHP