12345678910111213141516171819202122232425 |
- <?php
- namespace App\Services\Auth;
- use Illuminate\Auth\Passwords\PasswordBroker as BasePasswordBroker;
- class PasswordBroker extends BasePasswordBroker
- {
-
- public function sendResetLink(array $credentials)
- {
-
- $user = $this->getUser($credentials);
- if (is_null($user)) {
- return static::INVALID_USER;
- }
-
- $this->tokens->create($user);
- return static::RESET_LINK_SENT;
- }
- }
|