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');
    }
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');
    }
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' ) ; }
Activate a user.

@param \Illuminate\Http\Request $request

@return $this
Activate a user .