original_string: public function authentication(Request $request)
      {
          try {
              $this->authRepositoryInterface->authenticate($request->all());
          } catch (FormValidationException $e) {
              Flash::error($e->getMessage());
  
              return redirect()
                ->route('auth.login')
                ->withErrors($e->getErrors());
          } catch (AuthenticationException $e) {
              Flash::error($e->getMessage());
  
              return redirect()->route('auth.login');
          }
  
          return redirect()->route('dashboard.index');
      }
code: public function authentication(Request $request)
      {
          try {
              $this->authRepositoryInterface->authenticate($request->all());
          } catch (FormValidationException $e) {
              Flash::error($e->getMessage());
  
              return redirect()
                ->route('auth.login')
                ->withErrors($e->getErrors());
          } catch (AuthenticationException $e) {
              Flash::error($e->getMessage());
  
              return redirect()->route('auth.login');
          }
  
          return redirect()->route('dashboard.index');
      }
code_tokens: public function authentication ( Request $ request ) { try { $ this -> authRepositoryInterface -> authenticate ( $ request -> all ( ) ) ; } catch ( FormValidationException $ e ) { Flash :: error ( $ e -> getMessage ( ) ) ; return redirect ( ) -> route ( 'auth.login' ) -> withErrors ( $ e -> getErrors ( ) ) ; } catch ( AuthenticationException $ e ) { Flash :: error ( $ e -> getMessage ( ) ) ; return redirect ( ) -> route ( 'auth.login' ) ; } return redirect ( ) -> route ( 'dashboard.index' ) ; }
docstring: Authenticate and Validate login input.
  
  @param Request $request
  
  @return $this|\Illuminate\Http\RedirectResponse
docstring_tokens: Authenticate and Validate login input .