my api controller:
$POST /api/member/logout
public function post_logout(){
try{
member::logout();
return Response::json([], 200);
}catch(Exception $e){
print_r($e);
return Response::json($e, 500);
}
}
and my model
public static function logout(){
if(!Auth::check()){
throw new Exception('not_logged');
}
Auth::logout();
}
It is returning status 200 but never ends loading (18.3mb loaded and counting...)