Skip to content

feat(model): add method parserOptions #248

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

Closed
wants to merge 3 commits into from
Closed

feat(model): add method parserOptions #248

wants to merge 3 commits into from

Conversation

ricardo-lobo
Copy link

Add a way to customise parser options.

Some frameworks, like Laravel, expect the array to be encoded with indices format instead of comma format.

This will allow to set a different option while respecting the current default.

See: #214 (comment)

Added tests and docs.

@robsontenorio
Copy link
Owner

@ricardo-lobo it looks nice!

@JoaoPedroAS51 could you take a look ?

@ricardo-lobo
Copy link
Author

@robsontenorio You can close this PR.

It does not solve the Laravel compatibility issue as this PR doesn't work property with nested filters.

6098689 introduced a breaking change that needs to be properly address in a separated PR.

If I have time I will create a new PR
Thank you

@JoaoPedroAS51
Copy link
Collaborator

@robsontenorio @ricardo-lobo Hi! Thank you for the PR! I'll take a look soon, probably by the weekend. Then we can work on a fix for nested filters as well :)

P.S Sorry for taking so long to address the issue, I've been really busy

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.

4 participants