A
A
Alexander2018-02-28 15:30:25
Laravel
Alexander, 2018-02-28 15:30:25

How to collect data for statistics?

There is a table of visits:

  1. Full name
  2. date and time

You need to pull out the number of visits for: today, yesterday, etc.
The problem is that the only known way to do this is to pull out all the records using whereDate(), and count the number of records in the controller using count. It seems to me that this is not entirely correct, and with large amounts of data, there will be delays.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hopeful_romantic, 2018-02-28
@Alex1237

https://stackoverflow.com/questions/18533080/larav...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question