Skip to content

Conversation

@HassanDomeDenea
Copy link
Contributor

When running this line:

Taxonomy::getNestedTree();

While having this in your configs/providers:

Model::shouldBeStrict();

The following error would result (assuming you have some rows):

Illuminate\Database\Eloquent\MissingAttributeException

The attribute [children_nested] either does not exist or was not retrieved for model [Aliziodev\LaravelTaxonomy\Models\Taxonomy].

This was fixed and a test was added

aliziodev added a commit that referenced this pull request Jul 22, 2025
* fix: getNestedTree with Model::shouldBeStrict()

* ci(tests): update test workflow to include coverage and upgrade codecov

* refactor(command): extract model class retrieval to method

* feat(enums): add documentation and utility methods

* feat(taxonomy): make taxonomy model configurable

* test: add comprehensive test coverage for taxonomy features

* style(tests): remove trailing whitespace in test files

* fix(taxonomy): eager load children relation when getting descendants

* test: disable lazy loading and add description field to products

* test(command): add tests for handle method execution and signature

* docs: add codecov badge and reorder existing badges

* test(model): add description to fillable fields

* test: add unit tests for DuplicateSlugException

* test(taxonomy): add unit tests for taxonomy filtering functionality

* test: add unit tests for TaxonomyManager

* test(taxonomy): add additional unit tests for Taxonomy model

* test: eager load nested children in taxonomy descendants test

* test: add unit tests for TaxonomyProvider registration

* test: remove unused ReflectionClass imports from test files

* refactor(taxonomy): make wouldCreateCircularReference method public

* test(taxonomy): add circular reference check in move operation test

* test: add tests for rebuild nested set command and createOrUpdate method

---------

Co-authored-by: HassanDomeDenea <hassan.domedenea@gmail.com>
github-actions bot pushed a commit that referenced this pull request Jul 22, 2025
## [2.5.0](v2.4.8...v2.5.0) (2025-07-22)

### Features

* refactor to configurable model and merged PR [#8](#8) ([#9](#9)) ([409cbe7](409cbe7))
@aliziodev
Copy link
Owner

Thanks for improving this – it’s merged now.

@aliziodev aliziodev closed this Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants