babenkoivan / elastic-scout-driver-plus

Extension for Elastic Scout Driver
MIT License
267 stars 52 forks source link

Add Macroable trait to SearchParametersBuilder #161

Closed hendrikheil closed 9 months ago

hendrikheil commented 10 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.

babenkoivan commented 9 months ago

Hey @hendrikheil, thank you for the PR! I've added it to v4.7.0 🙂