/**
  * @return mixed
  */
 public function index(Request $request)
 {
     try {
         $paginator = $this->repository->findAllPaginate($request);
         return $this->response->paginator($paginator, new BaseTransformer());
     } catch (QueryParserException $e) {
         throw new StoreResourceFailedException($e->getMessage(), $e->getFields());
     }
 }