select `genres`.*, `post_genres`.`post_id` as `pivot_post_id`, `post_genres`.`genre_id` as `pivot_genre_id` from `genres` innerjoin `post_genres` on `genres`.`id` = `post_genres`.`genre_id` where `post_genres`.`post_id` =2693
select `peoples`.*, `post_peoples`.`post_id` as `pivot_post_id`, `post_peoples`.`people_id` as `pivot_people_id` from `peoples` innerjoin `post_peoples` on `peoples`.`id` = `post_peoples`.`people_id` where `post_peoples`.`post_id` =2693
selectcount(*) as aggregate from `reactions` where `reactions`.`reactable_type` ='App\\Models\\Post'and `reactions`.`reactable_id` =2693and `reactions`.`reactable_id` isnotnulland `reaction` ='like'
selectcount(*) as aggregate from `reactions` where `reactions`.`reactable_type` ='App\\Models\\Post'and `reactions`.`reactable_id` =2693and `reactions`.`reactable_id` isnotnulland `reaction` ='dislike'
select `tags`.*, `post_tags`.`post_id` as `pivot_post_id`, `post_tags`.`tagged_id` as `pivot_tagged_id` from `tags` innerjoin `post_tags` on `tags`.`id` = `post_tags`.`tagged_id` where `post_tags`.`post_id` =2693
Comments
No comments yet!