T
T
the5x2019-04-12 23:34:14
Laravel
the5x, 2019-04-12 23:34:14

How to count number of same author_id in post table?

There is a table post and author . The post
table has an author_id column . I want to select all posts and count the number of the same author_id so that the result in a loop is: News title author_name (author of 10 news) How to implement this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question