public static function LoggedOutOnly() { // if user is logged in... if (Session::get('user_logged_in')) { // Session::add('feedback_negative', 'Error. To access this section of the website, you need to log-out first.'); Teleport::to('error/you-shall-not-pass/log-out/'); exit; } }
public function logout() { LoginModel::logout(); Teleport::home(); }