/** * 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')); }
/** * 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')); }
/** * Store a newly created group entity in storage. * * @return Response */ public function store(GroupRequest $request) { return parent::_store($request); }
protected function innerRedirect($action, $entity = null) { return parent::innerRedirect('index', $entity); }