Browse Source

Merge pull request 'dev-wahyu' (#139) from dev-wahyu into staging

Reviewed-on: ordo/adw-backend#139
pull/3/head
ibnu 1 year ago
parent
commit
b3b6daf99b
  1. 2
      app/Http/Controllers/ProjectController.php

2
app/Http/Controllers/ProjectController.php

@ -278,7 +278,7 @@ class ProjectController extends Controller
}
try {
$projectsByType = DB::table('m_proyek')
->select('m_type_proyek.name', DB::raw('count(id) as total'))
->select('m_type_proyek.name', DB::raw('count(m_type_proyek.id) as total'))
->join('m_type_proyek', 'm_type_proyek.id', '=', 'm_proyek.type_proyek_id')
->groupBy('m_type_proyek.name')
->get();

Loading…
Cancel
Save