Browse Source

add parent select in Divisi Models

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

2
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();

Loading…
Cancel
Save