Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel Nested Sets v7 - Laravel 11, PHP 8.3, PHPUnit 10.* and drop EOL PHP support #599

Open
wants to merge 71 commits into
base: master
Choose a base branch
from

Conversation

asurcodes
Copy link

@asurcodes asurcodes commented Mar 19, 2024

Changes proposed in this PR:

  • Update master branch with latest changes
  • Add support for Laravel 11
  • Drop backwards compatibility for EOL PHP versions (other releases still available)
  • Upgrade PHPUnit to version 10.* (config file migration required)
  • Upgrade deprecated ccheckout action to v4
  • Add namespacing to test models
  • Other minor style consistency changes

I let to @lazychaser if this qualifies for a major version bump. If you need any changes or have any suggestions let me know! 😄

SlyDeath and others added 30 commits May 16, 2017 14:11
When SQL error "key" is ambiguous
@getDuplicatesQuery used "id" directly as primary key for the model. Changed to "{keyName}" notation. :-)
…ndantOf with additional join(s)

If joins are made between the table using the NodeTrait and the table itself, using conditions whereDescendantOf or whereAncestorOf would throw an Integrity Constraint Violation error on columns _lft and/or _rgt.
Fix "ambiguous column" issue when using ancestor/descendant condition
Due to some changes in the Laravel internals in regard with handling
eager loading, upgrading the library to Laravel 5.7 is required. Also,
nobody should be on PHP < 7 anyway. So now is a good time, if any...
…zychaser#339, lazychaser#351, lazychaser#329, lazychaser#334, lazychaser#271)

The way eager loading is handled in Laravel has changed since the
original implementation of the NestedSet library. It was not possible
anymore to apply the scope to eagerly loaded ancestors/descendants
relationships.

Also removed defaultOrder() from the relations so custom orders can be
applied. Sorting should never be a part of a relation anyway, or it
would be hard to customize.
lazychaser and others added 30 commits May 28, 2021 10:08
FIX: Issues with Laravel Novas reverse dependency resolving
…storsWithScope

Fix eager loading ancestors with scope
Fix return type of NodeTrait::scoped method
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.