Во встроенном контроллере для сброса пароля Auth\ResetPasswordController есть функция reset
public function reset(Request $request)
{
$request->validate($this->rules(), $this->validationErrorMessages());
// Here we will attempt to reset the user's password. If it is successful we
// will update the password on an actual user model and persist it to the
// database. Otherwise we will parse the error and return the response.
$response = $this->broker()->reset(
$this->credentials($request), function ($user, $password) {
$this->resetPassword($user, $password);
}
);
// If the password was successfully reset, we will redirect the user back to
// the application's home authenticated view. If there is an error we can
// redirect them back to where they came from with their error message.
return $response == Password::PASSWORD_RESET
? $this->sendResetResponse($request, $response)
: $this->sendResetFailedResponse($request, $response);
}
Хорошо, здесь идет работа с пользователем, его входящими данными. Однако я понять не могу, где идет работа с таблицей password_resets (встроенной)? Ведь после восстановления пароля там записи добавляются/удаляются. Я думаю (может неправильно), что это реализовано в методе broker(), однако я никак не могу найти его по иерархии trait'ов, интерфейсов и прочит классов.