Beispiel #1
0
 public function hasChildren()
 {
     $totalChildren = Menu::where('parent_id', $this->id)->orderBy('order', 'ASC')->get()->count();
     if ($totalChildren > 0) {
         return true;
     }
     return false;
 }