public function index(IndexRequest $request)
    {
        $data = $this->repository->datatables(null, $request->getWith())
            ->search($request->getColumns(), null)
            ->result($request->getExportFileName());

        return $data;
    }
public function index(IndexRequest $request)
    {
        $data = $this->repository->datatables(null, $request->getWith())
            ->search($request->getColumns(), null)
            ->result($request->getExportFileName());

        return $data;
    }
public function index ( IndexRequest $ request ) { $ data = $ this -> repository -> datatables ( null , $ request -> getWith ( ) ) -> search ( $ request -> getColumns ( ) , null ) -> result ( $ request -> getExportFileName ( ) ) ; return $ data ; }
Display a listing of the Permission.

@param IndexRequest $request
@return JsonResponse|\Illuminate\Http\Response|\Symfony\Component\HttpFoundation\BinaryFileResponse
@throws \Prettus\Repository\Exceptions\RepositoryException
@throws \Exception
Display a listing of the Permission .