app\main\controllers\AuthController::logout PHP Method

logout() public method

GET, POST | This logouts the current session logged-in.
public logout ( ) : mixed
return mixed
    public function logout()
    {
        auth()->destroy();
        return redirect()->to(route('showLoginForm'));
    }