У меня есть следующая модель пользователя:
use Illuminate\Contracts\Auth\MustVerifyEmail;
class User extends Model implements AuthenticatableContract,
AuthorizableContract,
CanResetPasswordContract,
MustVerifyEmail {
use Authenticatable, Authorizable, CanResetPassword, HasApiTokens, Notifiable;
public function sendEmailVerificationNotification()
{
$this->notify(new VerifyEmailNotification());
}
//...
}
Однако я получаю следующую ошибку:
Class App\User contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Illuminate\Contracts\Auth\MustVerifyEmail::hasVerifiedEmail, Illuminate\Contracts\Auth\MustVerifyEmail::markEmailAsVerified)
Почему мне нужно реализовать эти два метода.В документах ничего нет по этому поводу?