/** * Log out the currently logged in user. * * @return \Illuminate\Http\JsonResponse */ public function logout() { $this->users->logout(); return $this->status('logged out', 200); }
/** * Log out the currently logged in user. * * @return \Illuminate\Http\RedirectResponse */ public function logout() { $this->users->logout(); return $this->redirect('login')->with('info', Lang::get('c::auth.logout-success')); }