コード例 #1
0
ファイル: Page.php プロジェクト: darrengopower/framework
 /**
  * @return bool
  */
 public function hasParent()
 {
     return $this->getAttribute('parent_id') && parent::whereId($this->getAttribute('parent_id'))->count();
 }