Commit 16b63ff1 by Azhan Hannan

group by handling, remove sql_mode=' '

parent d1b0ce9c
...@@ -52,7 +52,7 @@ return [ ...@@ -52,7 +52,7 @@ return [
'collation' => 'utf8mb4_unicode_ci', 'collation' => 'utf8mb4_unicode_ci',
'prefix' => '', 'prefix' => '',
'prefix_indexes' => true, 'prefix_indexes' => true,
'strict' => true, 'strict' => false,
'engine' => null, 'engine' => null,
], ],
......
...@@ -366,11 +366,12 @@ class DashboardController extends Controller ...@@ -366,11 +366,12 @@ class DashboardController extends Controller
->where('month', $month) ->where('month', $month)
->where('phase', $phase) ->where('phase', $phase)
->where('status', 2) ->where('status', 2)
->distinct('staff_id') // ->distinct('staff_id')
->groupby('staff_id')
->orderby('roleid') ->orderby('roleid')
->with('countchargeable') ->with('countchargeable')
->get(); ->get();
// dd($profile); dd($profile);
$details = Tproject::where('tp_year', $curryear) $details = Tproject::where('tp_year', $curryear)
->where('tp_month', $month) ->where('tp_month', $month)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment