src/models/Category.php
protected function isParentIdSame()
	{
		$dirty = $this->getDirty();
		$oldNavItem = self::where('id','=',$this->id)->first();
		$oldParent = $oldNavItem->parent;
		$oldParentId = $oldParent->id;
		$isParentColumnSet = isset($dirty[$this->getParentColumnName()]);
		if ($isParentColumnSet)
		{
			$isNewParentSameAsOld = $dirty[$this->getParentColumnName()] == $oldParentId;
		}
		else
		{
			$isNewParentSameAsOld = false;
		}
		return $isParentColumnSet && $isNewParentSameAsOld;
	}
protected function isParentIdSame()
	{
		$dirty = $this->getDirty();
		$oldNavItem = self::where('id','=',$this->id)->first();
		$oldParent = $oldNavItem->parent;
		$oldParentId = $oldParent->id;
		$isParentColumnSet = isset($dirty[$this->getParentColumnName()]);
		if ($isParentColumnSet)
		{
			$isNewParentSameAsOld = $dirty[$this->getParentColumnName()] == $oldParentId;
		}
		else
		{
			$isNewParentSameAsOld = false;
		}
		return $isParentColumnSet && $isNewParentSameAsOld;
	}
Returns true if the parent_id value in the database is different to the current value in the model's dirty attributes
@return bool