PasswordBroker (Auth\Reminders)

PasswordBroker

class PasswordBroker (View source)

Constants

REMINDER_SENT

Constant representing a successfully sent reminder.

PASSWORD_RESET

Constant representing a successfully reset password.

INVALID_USER

Constant representing the user not found response.

INVALID_PASSWORD

Constant representing an invalid password.

INVALID_TOKEN

Constant representing an invalid token.

Methods

void __construct(ReminderRepositoryInterface $reminders, UserProviderInterface $users, Mailer $mailer, string $reminderView)

Create a new password broker instance.

string remind(array $credentials, Closure $callback = null)

Send a password reminder to a user.

int sendReminder(RemindableInterface $user, string $token, Closure $callback = null)

Send the password reminder e-mail.

mixed reset(array $credentials, Closure $callback)

Reset the password for the given token.

void validator(Closure $callback)

Set a custom password validator.

RemindableInterface getUser(array $credentials)

Get the user for the given credentials.

Details

void __construct(ReminderRepositoryInterface $reminders, UserProviderInterface $users, Mailer $mailer, string $reminderView)

Create a new password broker instance.

Parameters

ReminderRepositoryInterface $reminders
UserProviderInterface $users
Mailer $mailer
string $reminderView

Return Value

void

string remind(array $credentials, Closure $callback = null)

Send a password reminder to a user.

Parameters

array $credentials
Closure $callback

Return Value

string

int sendReminder(RemindableInterface $user, string $token, Closure $callback = null)

Send the password reminder e-mail.

Parameters

RemindableInterface $user
string $token
Closure $callback

Return Value

int

mixed reset(array $credentials, Closure $callback)

Reset the password for the given token.

Parameters

array $credentials
Closure $callback

Return Value

mixed

void validator(Closure $callback)

Set a custom password validator.

Parameters

Closure $callback

Return Value

void

RemindableInterface getUser(array $credentials)

Get the user for the given credentials.

Parameters

array $credentials

Return Value

RemindableInterface

Exceptions

UnexpectedValueException

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Auth/Reminders/PasswordBroker.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部