staudenmeir / eloquent-param-limit-fix-x-laravel-adjacency-list
Merge of staudenmeir/eloquent-param-limit-fix and staudenmeir/laravel-adjacency-list
Fund package maintenance!
paypal.me/JonasStaudenmeir
Requires
- php: ^8.2
- illuminate/database: ^12.0
- staudenmeir/eloquent-param-limit-fix: ^v1.1.1
- staudenmeir/laravel-adjacency-list: ^1.24
Requires (Dev)
- laravel/framework: ^12.0
- orchestra/testbench-core: ^10.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.0
README
This Laravel package merges staudenmeir/eloquent-param-limit-fix and staudenmeir/laravel-adjacency-list to allow them being used in the same model.
Supports Laravel 9.0+.
Installation
composer require staudenmeir/eloquent-param-limit-fix-x-laravel-adjacency-list:"^1.0"
Use this command if you are in PowerShell on Windows (e.g. in VS Code):
composer require staudenmeir/eloquent-param-limit-fix-x-laravel-adjacency-list:"^^^^1.0"
Versions
Laravel | Package |
---|---|
12.x | 1.3 |
11.x | 1.2 |
10.x | 1.1 |
9.x | 1.0 |
Usage
Use the HasParamLimitFixAndRecursiveRelationships
trait in your model:
class User extends Model { use \Staudenmeir\EloquentParamLimitFixXLaravelAdjacencyList\Eloquent\HasParamLimitFixAndRecursiveRelationships; }
Contributing
Please see CONTRIBUTING and CODE OF CONDUCT for details.