Skip to content
Advertisement

Call to undefined method IlluminateDatabaseQueryBuilder::notify()

Issue in Laravel 5.3.6 when submitted request in Forgot Password.

Error Details

Call to undefined method IlluminateDatabaseQueryBuilder::notify()

Issue is in below file:

vendorlaravelframeworksrcIlluminateAuthPasswordsPasswordBroker.php

Line 69. Code is below

$user->sendPasswordResetNotification(
    $this->tokens->create($user)
);

Function: sendResetLink

It was working fine in Laravel 5.2 and seems not working in 5.3.6 version. Have you faced this issue?

Advertisement

Answer

You must add IlluminateNotificationsNotifiable trait in User model.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement