Maison > Questions et réponses > le corps du texte
->select ( 'a.status as status', 'b.name as customer_name', 'e.name as branch_name' , 'c.name as company_name', 'd.name as project_name', 'f.name as region_name', 'e.code as branch_code', 'e.id as branch_code', DB::raw('COUNT(a.id) as total_transaksi') ) ->groupBy ( 'e.id', 'b.name', 'e.name', 'e.code', 'a.status', 'c.name', 'd.name', 'f.name' )
P粉1547981962024-04-07 10:38:57
C'est incorrect, vous ne pouvez pas utiliser un seul nom pour la même colonne,
'e.code as branch_code', 'e.id as branch_code',
changé en
'e.code as branch_code', 'e.id as branch_id',