You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two tables post and tag and their pivot table post_tag. I have a grid table on the frontend of my laravel application that displays all the columns from the post table and a column from the pivot table post_tag. How can I filter the list of items of the post table based on the pivot column (say tag_id). All the pivot table contains are post_id, tag_id and status. I noticed the fields to filter by must be specified in the table's model such as post and tag. Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two tables post and tag and their pivot table post_tag. I have a grid table on the frontend of my laravel application that displays all the columns from the post table and a column from the pivot table post_tag. How can I filter the list of items of the post table based on the pivot column (say tag_id). All the pivot table contains are post_id, tag_id and status. I noticed the fields to filter by must be specified in the table's model such as post and tag. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions