Beispiel #1
0
 /**
  * Display a listing of the authors.
  *
  * @return Response
  */
 public function index()
 {
     $authors = parent::index();
     if (self::isApiCall()) {
         return response()->json(remap_for_json($authors->all()));
     }
     return $this->viewIndex(compact('authors'));
 }
Beispiel #2
0
 /**
  * Display a listing of the page entities.
  *
  * @return Response
  */
 public function index()
 {
     $pages = parent::index();
     if (self::isApiCall()) {
         return response()->json(remap_for_json($pages->all()));
     }
     $exclude = $this->hasFilters($this->filters);
     return $this->viewIndex(compact('pages', 'exclude'));
 }
Beispiel #3
0
 /**
  * Store a newly created group entity in storage.
  *
  * @return Response
  */
 public function store(GroupRequest $request)
 {
     return parent::_store($request);
 }
Beispiel #4
0
 protected function innerRedirect($action, $entity = null)
 {
     return parent::innerRedirect('index', $entity);
 }