/**
  * 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();
 }
 /**
  * POST Login the user.
  *
  * POST (:orchestra)/login
  *
  * @return mixed
  */
 public function login(Request $request, AuthenticateUser $authenticate, ThrottlesCommand $throttles)
 {
     $input = $request->only(['email', 'password', 'remember']);
     $throttles->setRequest($request)->setLoginKey('email');
     return $authenticate->login($this, $input, $throttles);
 }
 /**
  * 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);
 }