/** * Deletes a user * @param $id * @throws UserNotFoundException * @return mixed */ public function delete($id) { if ($user = $this->user->find($id)) { return $user->delete(); } throw new UserNotFoundException(); }