Display a listing of the resource.

@return Response
972837
public function index(Request $request)
	{
  		if ( Shinobi::can( config('watchtower.acl.user.index', false) ) ) {
			if ( $request->has('search_value') ) {
				$value = $request->get('search_value');
				$users = $this->model::where('name', 'LIKE', '%'.$value.'%')
					->orderBy('name')->paginate( config('watchtower.pagination.users', 15) );
				session()->flash('search_value', $value);
			} else {
				$users = $this->model::orderBy('name')->paginate( config('watchtower.pagination.users', 15) );
				session()->forget('search_value');	
			}
			
			return view( config('watchtower.views.users.index'), compact('users') );
	 	}

	 	return view( config('watchtower.views.layouts.unauthorized'), [ 'message' => 'view user list' ]);
	}
1265575
public function index()
    {
        $options = $this->getParams('offset', 'limit', 'includes', 'order_by');

        $orders = Subbly::api('subbly.order')->all($options);

        return $this->jsonCollectionResponse('orders', $orders);
    }
1128103
public function indexAction()
    {
        $response = $this->response;

        $mainPage = new \stdClass();
        $mainPage->services = $this->determineServices(
            $this->restUtils->getOptionRoutes()
        );

        $mainPage->thirdparty = $this->registerThirdPartyServices();

        $response->setContent(json_encode($mainPage));
        $response->setStatusCode(Response::HTTP_OK);
        $response->headers->set('Link', $this->prepareLinkHeader());

        // todo: make sure, that the correct content type is set.
        // todo: this should be covered by a kernel.response event listener?
        $response->headers->set('Content-Type', 'application/json');

        return $response;
    }
1373928
public function index()
    {
        $productsBuilder = $this
            ->repository
            ->query()
            ->where('type', '!=', 'VARIABLE_PRODUCT')
            ->orderBy('id', 'desc');

        $productGrid = new ProductDataGrid($productsBuilder);

        return view('avored-framework::product.index')
            ->with('dataGrid', $productGrid->dataGrid);
    }
675372
public function index()
    {
        return $this->core->api()->response(
            $this->makeContainer($this->modules->getModules())
        );
    }
1027774
public function indexAction()
    {
        if (!$this->rcmUserService->isAllowed(ResourceName::RESOURCE_SITES, 'admin')) {
            $this->getResponse()->setStatusCode(Response::STATUS_CODE_401);

            return $this->getResponse();
        }

        $this->layout()->setTemplate('layout/blank');

        $view = new ViewModel();
        $view->setVariable(
            'siteSettingsSectionDefinitions',
            $this->getSettingsSectionDefinitions->__invoke()
        );

        return $view;
    }
1256838
public function index()
    {
        $this->authorize('publicView', Event::class);

        return view('laralum_events::public.index', ['events' => Event::where('public', true)->orderBy('id', 'desc')->get()]);
    }
241181
public function index()
    {
        $this->authorize(RolesPolicy::PERMISSION_LIST);

        $roles = $this->role->withCount(['users', 'permissions'])->paginate(30);

        $this->setTitle($title = trans('auth::roles.titles.roles-list'));
        $this->addBreadcrumb($title);

        return $this->view('admin.roles.index', compact('roles'));
    }
1009663
public function index()
    {
        return $this->core->api()->response(
            [
                'layout' => $this->transformPresencesForApi($this->menu->getMenuLayout()),
            ]
        );
    }
34305
public function index()
    {
        $visitors = Visitor::with(['user', 'device', 'agent', 'geoip', 'referer', 'cookie', 'language', 'activities'])
            ->paginate(50);

        $this->setTitle($title = trans('tracker::visitors.titles.visitors-list'));
        $this->addBreadcrumb($title);

        return $this->view('admin.visitors.index', compact('visitors'));
    }
1025936
public function listAction()
    {
        $this->routeParam()->mapPageTo($this->queryService);
        $collection = $this->queryService->findUsedTags();

        return $this->viewModelFactory()->createFor($collection);
    }
674655
public function listAction()
    {
        $this->checkAuth($this->resources, $this->modules, AccessManager::VIEW);
        $request = $this->getRequest();

        if ($request->query->has('id')) {
            $request->query->remove('id');
        }

        $params = array_merge(
            $this->defaultLoopArgs,
            $request->query->all()
        );

        try {
            $results = $this->getLoopResults($params);
        } catch (\Exception $e) {
            throw new HttpException(500, json_encode(["error" => $e->getMessage()]));
        }

        return JsonResponse::create($results);
    }
357248
public function index()
    {
        $urls = [];
        foreach ($this->actions as $action => $description) {
            $fired = \Illuminate\Support\Facades\Event::fire('analyzer:before.' . $action);
            if (!empty($fired)) {
                array_push($urls, current($fired));
            }
            array_push($urls, [
                'url'         => handles('antares::logger/analyze/' . $action, ['csrf' => true]),
                'description' => $description,
            ]);
        }
        return new JsonResponse($urls);
    }
429548
public function index()
    {
        $this->authorize($this->model);
        
        $comments = $this->model
            ->with(['commentable', 'user'])
            ->orderBy('id', 'desc')
            ->paginate(25);

        return $this->makeResponse('index', compact('comments'));
    }
671434
public function index()
    {
        $orderGrid = new OrderGrid($this->repository->query()->orderBy('id', 'desc'));

        return view('avored-ecommerce::order.index')->with('dataGrid', $orderGrid->dataGrid);
    }
1063374
public function index()
    {
        $roleGrid = new RoleDataGrid($this->repository->query());

        return view('avored-framework::system.role.index')->with('dataGrid', $roleGrid->dataGrid);
    }
945762
public function index()
    {
        $categories = $this->repository->all();
        $categoryGrid = new CategoryDataGrid($this->repository->query());

        return view('avored-framework::product.category.index')
            ->with('dataGrid', $categoryGrid->dataGrid)
            ->with('categories', $categories);
    }