use DB:: raw in select to get custom count field in the output.
Aug 22, 2017
7
Level 2
count and get in same query
hello guys i have 2 different table one is job_postings and second one is mi_rec_applicants here i just want to count value of mi_rec_applicants and hole data of job_postings in single query like this
0 => {#354 ▼
+"id": 12
+"userid": "[email protected]"
+"cmpnyname": "ABC Ltd"
+"job_pos_id": "JOB00000000000010014"
+"pos_stat": "Live"
+"intjobpos_id": "JOB00000000000010014"
+"job_title": "Beauty/Fitness/Spa Services"
+"job_type": "Permanent"
+"job_loc": "Mumbai"
+"no_of_pos": "12"
+"gender": "No_preference"
+"pref_nat": "Indian"
+"min_qual": "BOM"
+"pref_qual": "MOR"
}
here below +"pref_qual": "MOR" i want count value of table one how i can achieve this
Please or to participate in this conversation.