->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' )
转到config/database.php
严格设置为 false
这是不正确的,您不能对同一列使用单个名称,
更改为