E
E
Elnur Tazhimbetov2019-01-28 18:48:33
Laravel
Elnur Tazhimbetov, 2019-01-28 18:48:33

How to take the number of elements between two dates?

There is a ticket that has a creation time and a response time. Here it is necessary to find through Eloquent where the difference between the two times is less than 7 minutes, how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jazzus, 2019-01-28
@tazhimbetov

Almost didn't work with dates, but as an idea:
WhereBetween
Carbon
< 7

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question