diff --git a/README.markdown b/README.markdown index 40d6adb..089cdc2 100644 --- a/README.markdown +++ b/README.markdown @@ -4,13 +4,7 @@ [![Latest Unstable Version](https://poser.pugx.org/kalnoy/nestedset/v/unstable.svg)](https://packagist.org/packages/kalnoy/nestedset) [![License](https://poser.pugx.org/kalnoy/nestedset/license.svg)](https://packagist.org/packages/kalnoy/nestedset) -This is a Laravel 4-8 package for working with trees in relational databases. - -* **Laravel 5.7, 5.8, 6.0, 7.0, 8.0** is supported since v5 -* **Laravel 5.5, 5.6** is supported since v4.3 -* **Laravel 5.2, 5.3, 5.4** is supported since v4 -* **Laravel 5.1** is supported in v3 -* **Laravel 4** is supported in v2 +This is a Laravel 4-8 package for working with trees for LARAVEL8(Speacial)(edit by aliqasemi) in relational databases. Although this project is completely free for use, I appreciate any support! diff --git a/composer.json b/composer.json index 44292ad..77e2f7b 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "kalnoy/nestedset", + "name": "nestedset/willaarts", "description": "Nested Set Model for Laravel 5.7 and up", "keywords": ["laravel", "nested sets", "nsm", "database", "hierarchy"], "license": "MIT", diff --git a/src/BaseRelation.php b/src/BaseRelation.php index 386757d..5807c0e 100644 --- a/src/BaseRelation.php +++ b/src/BaseRelation.php @@ -130,9 +130,9 @@ public function getRelationQuery( * * @return string */ - public function getRelationCountHash() + public function getRelationCountHash($incrementJoinCount = true) { - return 'nested_set_'.self::$selfJoinCount++; + return 'nested_set_'.($incrementJoinCount ? self::$selfJoinCount++ : self::$selfJoinCount); } /** @@ -208,4 +208,4 @@ protected function matchForModel(Model $model, EloquentCollection $results) return $result; } -} \ No newline at end of file +}