-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
RESTful Nested Resource - Filter dataTypeContent array #714
Comments
What you mean on filtering |
Sorry if i mistaken. i found it in the browse.blade.php
books hasMany book-pages i want to filter book-pages by the book. For example:
So, book-pages listed should have book_id = 1 |
I see. In your view replace
with
Returning |
By the way, to get the ID, you can use Which will split the URI |
Hi @marktopper, I never know the request got the segment method as i a newbie. I appreciate that tips. Thank you! Btw, i found controller level dataTypeContent filter.
|
Glad you figured it out and thanks for posting the way to do this using the controller. |
Welcome. 👌 |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group. |
Description:
Issue 1 - Routing & View (solved)
Issue 2 - Filter dataTypeContent array
$dataTypeContent
inviews/vendor/voyager/{slug}/browse.blade.php
my book-pages resource under books resources.
books/{book}/book-pages
I have no idea how to filter the dataTypeContent by the book.
The text was updated successfully, but these errors were encountered: