/** * Get the contract name and id * * @param array $id * @return collection */ public function getSupportingContracts($id) { return $this->contract->select(DB::raw("id,metadata->'contract_name' as contract_name"))->whereIn('id', $id)->get()->toArray(); }