Exemple #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'));
 }
Exemple #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'));
 }
Exemple #3
0
 /**
  * Display a listing of the group entities.
  *
  * @return Response
  */
 public function index()
 {
     $groups = parent::index();
     if (self::isApiCall()) {
         return response()->json(remap_for_json($groups->all()));
     }
     $exclude = $this->hasFilters($this->filters);
     $author = pick_arg(Author::class);
     return $this->viewIndex(compact('groups', 'exclude', 'author'));
 }
Exemple #4
0
 /**
  * Display a listing of the update entities.
  *
  * @return Response
  */
 public function index()
 {
     $entity = pick_arg(Entity::class);
     if ($entity) {
         $this->m->setEntity($entity);
     }
     $updates = parent::index();
     if (self::isApiCall()) {
         return response()->json(remap_for_json($updates->all()));
     }
     $exclude = $this->hasFilters($this->filters);
     return $this->viewIndex(compact('updates', 'exclude'));
 }