B
B
baksalyar2015-05-23 20:29:58
JavaScript
baksalyar, 2015-05-23 20:29:58

What is the best time format to use in Laravel?

What is the most convenient time-date format to use in Laravel / Eloquent? It is necessary to build real-time queues and process them. At the same time, it is planned to transfer information via Ajax to the client. I wonder which of the storage options in the database will be the most convenient? Speed ​​does not play a special role, only 40 positions in the queue will be served there.

Thanks in advance.

PS I suspect that over time Laravel will work more comfortably through Carbon?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
windoctor, 2015-05-24
@windoctor

Use timestamp. In the model, write the dates array with your field and the model will immediately return a datetime object, with which you can do whatever you want in the future.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question