public static findByToken ( string $token ) : |
||
$token | string | |
Результат |
public static function findByToken(string $token)
{
$resetRecord = app('db')->table('password_resets')->where('token', $token)->first();
if (empty($resetRecord)) {
return;
}
return static::where('email', $resetRecord->email)->first();
}