I have some tables in my database and I’m trying to transact between them. My aim is to show the project name and the employees in that project in the form of cards on my projects page as in the image below. (Other than the method I mentioned, if there are better ways to do this, I ask you to
Tag: relational-database
Laravel: How to get count of total Comments of total Posts
I have 10000 posts and each post have many comments. I need to calculate all comments count when i take posts. [ ‘post_1’ => [ ‘comments’ => [ ‘comment_1’ => ‘trst …