where('identity',$request->data)->orWhere('kpd',$request->data)->get(); if(count($compound) > 0){ return $this->sendResponse($compound, 'Result Found'); }else { return $this->sendResponse('', 'No Result'); } } }