├── .coveralls.yml ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── assignee.config.yml ├── dependabot.yml ├── release-drafter.yml └── workflows │ ├── auto_assignee.yml │ ├── auto_release.yml │ ├── ci.yml │ └── stale.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── composer.json ├── ecs.php ├── ecs.yml ├── phpcs.xml ├── phpunit.xml.dist ├── src ├── .meta.php ├── Collections │ └── LTreeCollection.php ├── Exceptions │ ├── InconsistentTreeException.php │ ├── InvalidTraitInjectionClass.php │ ├── LTreeReflectionException.php │ └── LTreeUndefinedNodeException.php ├── Helpers │ ├── LTreeBuilder.php │ ├── LTreeHelper.php │ └── LTreeNode.php ├── Interfaces │ ├── HasLTreeRelations.php │ ├── HasLTreeScopes.php │ ├── LTreeInterface.php │ ├── LTreeModelInterface.php │ ├── LTreeServiceInterface.php │ └── ModelInterface.php ├── LTreeExtension.php ├── Providers │ ├── LTreeExtensionProvider.php │ └── LTreeServiceProvider.php ├── Relations │ ├── AbstractBelongsToTree.php │ ├── BelongsToAncestorsTree.php │ └── BelongsToDescendantsTree.php ├── Resources │ ├── LTreeResource.php │ └── LTreeResourceCollection.php ├── Schema │ ├── Grammars │ │ └── LTreeSchemaGrammar.php │ └── LTreeBlueprint.php ├── Services │ └── LTreeService.php ├── Traits │ ├── HasTreeRelationships.php │ ├── LTreeModelTrait.php │ └── LTreeTrait.php └── Types │ └── LTreeType.php ├── tests.sh └── tests ├── FunctionalTestCase.php ├── LTreeBaseTestCase.php ├── TestCase.php ├── _data ├── Mocks │ └── LTreeMocks.php ├── Models │ ├── CategorySomeStub.php │ ├── CategoryStub.php │ ├── CategoryStubResource.php │ ├── CategoryStubResourceCollection.php │ └── ProductStub.php └── Traits │ └── HasLTreeTables.php └── functional ├── Collections └── LTreeCollectionTest.php ├── Helpers ├── LTreeHelperTest.php └── LTreeNodeTest.php ├── Models └── LTreeModelTest.php ├── Providers └── LTreeServiceProviderTest.php ├── Relations └── BelongsToTreelTest.php ├── Resources └── LTreeResourceTest.php └── Types └── LTreeTypeTest.php /.coveralls.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.coveralls.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/assignee.config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.github/assignee.config.yml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.github/release-drafter.yml -------------------------------------------------------------------------------- /.github/workflows/auto_assignee.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.github/workflows/auto_assignee.yml -------------------------------------------------------------------------------- /.github/workflows/auto_release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.github/workflows/auto_release.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.github/workflows/stale.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/composer.json -------------------------------------------------------------------------------- /ecs.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/ecs.php -------------------------------------------------------------------------------- /ecs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/ecs.yml -------------------------------------------------------------------------------- /phpcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/phpcs.xml -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/.meta.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/.meta.php -------------------------------------------------------------------------------- /src/Collections/LTreeCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Collections/LTreeCollection.php -------------------------------------------------------------------------------- /src/Exceptions/InconsistentTreeException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Exceptions/InconsistentTreeException.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidTraitInjectionClass.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Exceptions/InvalidTraitInjectionClass.php -------------------------------------------------------------------------------- /src/Exceptions/LTreeReflectionException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Exceptions/LTreeReflectionException.php -------------------------------------------------------------------------------- /src/Exceptions/LTreeUndefinedNodeException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Exceptions/LTreeUndefinedNodeException.php -------------------------------------------------------------------------------- /src/Helpers/LTreeBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Helpers/LTreeBuilder.php -------------------------------------------------------------------------------- /src/Helpers/LTreeHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Helpers/LTreeHelper.php -------------------------------------------------------------------------------- /src/Helpers/LTreeNode.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Helpers/LTreeNode.php -------------------------------------------------------------------------------- /src/Interfaces/HasLTreeRelations.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Interfaces/HasLTreeRelations.php -------------------------------------------------------------------------------- /src/Interfaces/HasLTreeScopes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Interfaces/HasLTreeScopes.php -------------------------------------------------------------------------------- /src/Interfaces/LTreeInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Interfaces/LTreeInterface.php -------------------------------------------------------------------------------- /src/Interfaces/LTreeModelInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Interfaces/LTreeModelInterface.php -------------------------------------------------------------------------------- /src/Interfaces/LTreeServiceInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Interfaces/LTreeServiceInterface.php -------------------------------------------------------------------------------- /src/Interfaces/ModelInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Interfaces/ModelInterface.php -------------------------------------------------------------------------------- /src/LTreeExtension.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/LTreeExtension.php -------------------------------------------------------------------------------- /src/Providers/LTreeExtensionProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Providers/LTreeExtensionProvider.php -------------------------------------------------------------------------------- /src/Providers/LTreeServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Providers/LTreeServiceProvider.php -------------------------------------------------------------------------------- /src/Relations/AbstractBelongsToTree.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Relations/AbstractBelongsToTree.php -------------------------------------------------------------------------------- /src/Relations/BelongsToAncestorsTree.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Relations/BelongsToAncestorsTree.php -------------------------------------------------------------------------------- /src/Relations/BelongsToDescendantsTree.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Relations/BelongsToDescendantsTree.php -------------------------------------------------------------------------------- /src/Resources/LTreeResource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Resources/LTreeResource.php -------------------------------------------------------------------------------- /src/Resources/LTreeResourceCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Resources/LTreeResourceCollection.php -------------------------------------------------------------------------------- /src/Schema/Grammars/LTreeSchemaGrammar.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Schema/Grammars/LTreeSchemaGrammar.php -------------------------------------------------------------------------------- /src/Schema/LTreeBlueprint.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Schema/LTreeBlueprint.php -------------------------------------------------------------------------------- /src/Services/LTreeService.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Services/LTreeService.php -------------------------------------------------------------------------------- /src/Traits/HasTreeRelationships.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Traits/HasTreeRelationships.php -------------------------------------------------------------------------------- /src/Traits/LTreeModelTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Traits/LTreeModelTrait.php -------------------------------------------------------------------------------- /src/Traits/LTreeTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Traits/LTreeTrait.php -------------------------------------------------------------------------------- /src/Types/LTreeType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/src/Types/LTreeType.php -------------------------------------------------------------------------------- /tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests.sh -------------------------------------------------------------------------------- /tests/FunctionalTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/FunctionalTestCase.php -------------------------------------------------------------------------------- /tests/LTreeBaseTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/LTreeBaseTestCase.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/_data/Mocks/LTreeMocks.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/_data/Mocks/LTreeMocks.php -------------------------------------------------------------------------------- /tests/_data/Models/CategorySomeStub.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/_data/Models/CategorySomeStub.php -------------------------------------------------------------------------------- /tests/_data/Models/CategoryStub.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/_data/Models/CategoryStub.php -------------------------------------------------------------------------------- /tests/_data/Models/CategoryStubResource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/_data/Models/CategoryStubResource.php -------------------------------------------------------------------------------- /tests/_data/Models/CategoryStubResourceCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/_data/Models/CategoryStubResourceCollection.php -------------------------------------------------------------------------------- /tests/_data/Models/ProductStub.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/_data/Models/ProductStub.php -------------------------------------------------------------------------------- /tests/_data/Traits/HasLTreeTables.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/_data/Traits/HasLTreeTables.php -------------------------------------------------------------------------------- /tests/functional/Collections/LTreeCollectionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/functional/Collections/LTreeCollectionTest.php -------------------------------------------------------------------------------- /tests/functional/Helpers/LTreeHelperTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/functional/Helpers/LTreeHelperTest.php -------------------------------------------------------------------------------- /tests/functional/Helpers/LTreeNodeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/functional/Helpers/LTreeNodeTest.php -------------------------------------------------------------------------------- /tests/functional/Models/LTreeModelTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/functional/Models/LTreeModelTest.php -------------------------------------------------------------------------------- /tests/functional/Providers/LTreeServiceProviderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/functional/Providers/LTreeServiceProviderTest.php -------------------------------------------------------------------------------- /tests/functional/Relations/BelongsToTreelTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/functional/Relations/BelongsToTreelTest.php -------------------------------------------------------------------------------- /tests/functional/Resources/LTreeResourceTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/functional/Resources/LTreeResourceTest.php -------------------------------------------------------------------------------- /tests/functional/Types/LTreeTypeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umbrellio/laravel-ltree/HEAD/tests/functional/Types/LTreeTypeTest.php --------------------------------------------------------------------------------