App\Modules\System\Controllers\Authorize::logout PHP Method

logout() public method

Handle a GET request to logout the current User.
public logout ( ) : Response
return Response
    public function logout()
    {
        Auth::logout();
        // Prepare the flash message.
        $status = __d('system', 'You have successfully logged out.');
        return Redirect::to('login')->withStatus($status);
    }