public function destroy()
    {
        try {
            $this->dispatch(new PerformUserLogout());
            return redirect($this->config->get('authentication.logout.redirectUri'));
        } catch (SessionHasExpired $e) {
            return redirect()->route('authentication::session.create')->withErrors([
               'authentication::login_warning' => $e->getMessage()
           ]);
        }
    }
public function destroy()
    {
        try {
            $this->dispatch(new PerformUserLogout());
            return redirect($this->config->get('authentication.logout.redirectUri'));
        } catch (SessionHasExpired $e) {
            return redirect()->route('authentication::session.create')->withErrors([
               'authentication::login_warning' => $e->getMessage()
           ]);
        }
    }
public function destroy ( ) { try { $ this -> dispatch ( new PerformUserLogout ( ) ) ; return redirect ( $ this -> config -> get ( 'authentication.logout.redirectUri' ) ) ; } catch ( SessionHasExpired $ e ) { return redirect ( ) -> route ( 'authentication::session.create' ) -> withErrors ( [ 'authentication::login_warning' => $ e -> getMessage ( ) ] ) ; } }
Attempts to log off the user.

@return RedirectResponse
Attempts to log off the user .