second and third level filtering
- Dominant language
- PHP
- Stars
- 163
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
How can I do the second and third level for filtering with 2D and 3D array.
Aworking example will be highly appreciated.
e.g.
consider my array
"books":[
{
"id":1,
"author_id":1,
"title":"How to save the world from evil",
"pages":100,
"**author**":{
"id":1,
"name":"Optimus Prime"
"**author_details**":{
"id":1,
"dept":"Literature"
}
}
},
I want to search by **books.author.name** && **books.author.author_details.dept**
What should be changes in the controller?
How should be the API call?
Thanks
Contributor guide
Research direction
Start by reading the controller's existing filtering behavior and how its API query parameters are parsed. Determine whether nested paths such as books.author.name and books.author.author_details.dept are intended to be supported, then define the controller changes and API call format needed for both filters, with a working example as the completion check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100