Browse Source

add parent select in Divisi Models

pull/3/head
wahyuun 1 year ago
parent
commit
c1526d3eee
  1. 4
      app/Http/Controllers/DashboardBoDController.php

4
app/Http/Controllers/DashboardBoDController.php

@ -271,7 +271,7 @@ class DashboardBoDController extends Controller
{
$year = $this->interpolateYear($year);
$divisions = Divisi::select('id', 'name')
$divisions = Divisi::select('id', 'name','parent')
->with('children')
->whereNull('parent')
->get();
@ -358,4 +358,4 @@ class DashboardBoDController extends Controller
'total_manpowers' => User::count()
], 200);
}
}
}

Loading…
Cancel
Save