private function establishBaseParametersFromParent($parent)
	{
		$this->set('parent_id', $parent->id);
		$this->set('level', $parent->level + 1);

		return $this->applyScopes($parent);
	}
private function establishBaseParametersFromParent($parent)
	{
		$this->set('parent_id', $parent->id);
		$this->set('level', $parent->level + 1);

		return $this->applyScopes($parent);
	}
private function establishBaseParametersFromParent ( $ parent ) { $ this -> set ( 'parent_id' , $ parent -> id ) ; $ this -> set ( 'level' , $ parent -> level + 1 ) ; return $ this -> applyScopes ( $ parent ) ; }
Sets the default scopes on the model

@param   object|int  $parent  The parent of the child being created
@return  $this
@since   2.1.0
Sets the default scopes on the model