Closed hendrikheil closed 9 months ago
This PR allows SearchParametersBuilder to be Macroable. This is very useful when trying to do things like spatie/laravel-json-api-paginate does.
For example, this allows a user to alias a custom pagination method which uses other query parameters than the ones provided by Laravel.
This would make it on-par with laravel/scouts Builder, which is already Macroable.
Hey @hendrikheil, thank you for the PR! I've added it to v4.7.0 🙂
This PR allows SearchParametersBuilder to be Macroable. This is very useful when trying to do things like spatie/laravel-json-api-paginate does.
For example, this allows a user to alias a custom pagination method which uses other query parameters than the ones provided by Laravel.
This would make it on-par with laravel/scouts Builder, which is already Macroable.