/** * Delete page from database. * * @param int $id * @return Json */ public function destroy($id) { if ($this->repo->destroy($id)) { return Response::json(trans('dash.pageDelSuccess'), 200); } }
/** * Return array of available pages titles. * * @return array */ private function getPages() { return $this->repo->getPagesList(); }