Пример #1
0
 /**
  * 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);
     }
 }
Пример #2
0
 /**
  * Return array of available pages titles.
  * 
  * @return array
  */
 private function getPages()
 {
     return $this->repo->getPagesList();
 }