Пример #1
0
 /**
  * Get all groups.
  *
  * @param \Symfony\Component\HttpFoundation\Request $request
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function getGroups(Request $request)
 {
     $groups = ComponentGroup::paginate(Binput::get('per_page', 20));
     return $this->paginator($groups, $request);
 }
 /**
  * Get all groups.
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function getGroups()
 {
     $groups = ComponentGroup::paginate(Binput::get('per_page', 20));
     return $this->paginator($groups, Request::instance());
 }