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

Add Macroable trait to SearchParametersBuilder #161

Merged
merged 1 commit into from
Feb 11, 2024
Merged

Add Macroable trait to SearchParametersBuilder #161

merged 1 commit into from
Feb 11, 2024

Conversation

hendrikheil
Copy link
Contributor

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 babenkoivan merged commit d1d51fc into babenkoivan:master Feb 11, 2024
4 of 5 checks passed
@babenkoivan
Copy link
Owner

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

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