<?php // Check if is logged in Auth::check(); // Logout action if(isset($_GET['action']) && $_GET['action'] == 'logout') { Auth::logout(); }