Can you have clean URLs (filter parameters) with laravel-query-builder? #871
Unanswered
connecteev
asked this question in
Q&A
Replies: 1 comment
-
Old question, but as you can read in the introduction; this package is designed to align with the JSON API specifications. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can you have customize the URL / can you have clean URLs (filter parameters) with laravel-query-builder?
So instead of: http://127.0.0.1:8000/discuss/?filter[noreplies]=1
I want something cleaner, like:
http://127.0.0.1:8000/discuss/?noreplies=1
I don't want to use query string parameters like filter, sort, include, etc in the URL (or change them to something else, as mentioned at https://spatie.be/docs/laravel-query-builder/v5/installation-setup
I want to have URLs like: http://127.0.0.1:8000/discuss/?noreplies=1
Here is my existing code that makes use of laravel-query-builder. Is this at all possible? And if so, how would I do that?
app/Http/Controllers/ForumIndexController.php:
app/Http/QueryFilters/NoRepliesQueryFilter.php:
Beta Was this translation helpful? Give feedback.
All reactions