예제 #1
0
 /**
  * @return bool
  */
 public function hasParent()
 {
     return $this->getAttribute('parent_id') && parent::whereId($this->getAttribute('parent_id'))->count();
 }