Exemple #1
0
 /**
  * @return int
  */
 public function countSubPages()
 {
     $count = parent::whereParentId($this->attributes['id'])->count();
     return $count ? $count : 0;
 }
Exemple #2
0
 /**
  * @return mixed
  */
 public function countSubMenu()
 {
     return parent::whereParentId($this->attributes['id'])->count();
 }