/** * @return bool */ public function resignation() { $user = $this->getUser(); if (empty($user)) { return false; } $guard = $this->getGuard(); $guard->logout(); \Session::flush(); $this->authenticatableRepository->delete($user); return true; }
/** * @return bool */ public function resignation() { $user = $this->getUser(); if (empty($user)) { return false; } $guard = $this->getGuard(); $guard->logout(); \Session::flush(); $this->authenticatableRepository->delete($user); return true; }