diff --git a/app/Models/Divisi.php b/app/Models/Divisi.php index 5a37c85..ac255f4 100644 --- a/app/Models/Divisi.php +++ b/app/Models/Divisi.php @@ -1,41 +1,42 @@ -children()->delete(); - }); - } - - public function parent() - { - return $this->belongsTo('App\Models\Divisi','parent')->where('parent', null)->with('parent'); - } - - public function children() - { - return $this->hasMany('App\Models\Divisi','parent')->with('children'); - } -} +children()->delete(); + }); + } + + public function parent() + { + return $this->belongsTo('App\Models\Divisi','parent')->where('parent', null)->with('parent'); + } + + public function children() + { + return $this->hasMany('App\Models\Divisi','parent')->with('children'); + } +}