You need to share all useful information if you want us to help you.
What is the structure of the table ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello i want to select matched and Unmatched records and saved in table Example all match records status=1 and unmatch records status=0
Right Now I managed to selected the match records, but i did not managed to find the unmatch records what can i do to get both and save into another table
another table field format
unit_id : status
$Matchrecord=DB::table('devices')
->select('Devicenumber','sales.created_at as sdate')
->Leftjoin('sales','devices.id','=','sales.unit_issue_id')
->where('devices.devicetype',1)
->where('sales.cancel_bill',0)
->whereDate('sales.created_at',Carbon::today())->get();
Please or to participate in this conversation.