original_string: public function activation(Request $request)
      {
          if (!config('laraflock.dashboard.activations')) {
              Flash::error(trans('dashboard::dashboard.flash.activation.not_active'));
  
              return redirect()->route('auth.login');
          }
  
          try {
              $this->authRepositoryInterface->activate($request->all());
          } catch (FormValidationException $e) {
              Flash::error($e->getMessage());
  
              return redirect()
                ->route('auth.activate')
                ->withErrors($e->getErrors())
                ->withInput();
          } catch (AuthenticationException $e) {
              Flash::error($e->getMessage());
  
              return redirect()
                ->route('auth.activate')
                ->withInput();
          }
  
          Flash::success(trans('dashboard::dashboard.flash.activation.success'));
  
          return redirect()->route('auth.login');
      }
code: public function activation(Request $request)
      {
          if (!config('laraflock.dashboard.activations')) {
              Flash::error(trans('dashboard::dashboard.flash.activation.not_active'));
  
              return redirect()->route('auth.login');
          }
  
          try {
              $this->authRepositoryInterface->activate($request->all());
          } catch (FormValidationException $e) {
              Flash::error($e->getMessage());
  
              return redirect()
                ->route('auth.activate')
                ->withErrors($e->getErrors())
                ->withInput();
          } catch (AuthenticationException $e) {
              Flash::error($e->getMessage());
  
              return redirect()
                ->route('auth.activate')
                ->withInput();
          }
  
          Flash::success(trans('dashboard::dashboard.flash.activation.success'));
  
          return redirect()->route('auth.login');
      }
code_tokens: public function activation ( Request $ request ) { if ( ! config ( 'laraflock.dashboard.activations' ) ) { Flash :: error ( trans ( 'dashboard::dashboard.flash.activation.not_active' ) ) ; return redirect ( ) -> route ( 'auth.login' ) ; } try { $ this -> authRepositoryInterface -> activate ( $ request -> all ( ) ) ; } catch ( FormValidationException $ e ) { Flash :: error ( $ e -> getMessage ( ) ) ; return redirect ( ) -> route ( 'auth.activate' ) -> withErrors ( $ e -> getErrors ( ) ) -> withInput ( ) ; } catch ( AuthenticationException $ e ) { Flash :: error ( $ e -> getMessage ( ) ) ; return redirect ( ) -> route ( 'auth.activate' ) -> withInput ( ) ; } Flash :: success ( trans ( 'dashboard::dashboard.flash.activation.success' ) ) ; return redirect ( ) -> route ( 'auth.login' ) ; }
docstring: Activate a user.
  
  @param \Illuminate\Http\Request $request
  
  @return $this
docstring_tokens: Activate a user .