/** * Check if user has too many attempts. * * @param \Orchestra\Contracts\Auth\Command\ThrottlesLogins|null $throttles * * @return bool */ protected function hasTooManyAttempts(ThrottlesCommand $throttles = null) { return $throttles && $throttles->hasTooManyLoginAttempts(); }
/** * Check if user has too many attempts. * * @param array $input * @param \Orchestra\Contracts\Auth\Command\ThrottlesLogins|null $throttles * * @return bool */ protected function hasTooManyAttempts(array $input, ThrottlesCommand $throttles = null) { return $throttles && $throttles->hasTooManyLoginAttempts($input); }