find() public method

public find ( $filter = null )
 /**
  * @param $clientPublicId
  * @param $search
  * @return \Illuminate\Http\JsonResponse
  */
 public function getDatatable($search)
 {
     // we don't support bulk edit and hide the client on the individual client page
     $datatable = new ExpenseCategoryDatatable();
     $query = $this->categoryRepo->find($search);
     return $this->datatableService->createDatatable($datatable, $query);
 }