I was implementing the password reset method. But when i enter my email and submit i get
BadMethodCallException Method Illuminate\Database\Query\Builder::notify does not exist.
after some digging i found "CanResetPassword.php" in the laravel source /vendor/laravel/framework/src/Illuminate/Auth/Passwords/CanResetPassword.php
and when i comment out this line
/**
* Send the password reset notification.
*
* @param string $token
* @return void
*/
public function sendPasswordResetNotification($token)
{
//$this->notify(new ResetPasswordNotification($token));
}
I dont get the error anymore... but i also am not getting the mail ... but I dont know why this error is showing - these are laravel core files.
My mail is also setup with mailtrap... this works Notifications is added in User model
What is going on?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire