How can i convert same mysql query into laravel query
select max(tbl_master_vehicle_specifications_temp_conf.id), tbl_master_vehicle_specifications_sheet.id as bid, tbl_master_vehicle_specifications_sheet.field_title as ft from tbl_master_vehicle_specifications_temp_conf, tbl_master_vehicle_specifications_sheet where tbl_master_vehicle_specifications_temp_conf.primary_id= tbl_master_vehicle_specifications_sheet.id group By bid,ft Order by 1 desc
->select('tbl_master_vehicle_specifications_sheet.field_title as field_title' ,'tbl_master_vehicle_specifications_sheet.id as id','tbl_master_vehicle_specifications_sheet.id',DB::raw(' max(tbl_master_vehicle_specifications_temp_conf.id) as mid'))
->groupBy('tbl_master_vehicle_specifications_sheet.id')
->groupBy('tbl_master_vehicle_specifications_sheet.field_title')
->orderBy('mid',' desc')
->get();