I store my dates in timestamp type (and I see in PHPMyAdmin for simple 2015-04-14 00:00:00). Is it stupid? Better way is set to int type and save UNIX time?
How can I do query
select * from `values` where `time` < $mytimeinunix
because Model::all()->where('time','<',$mytimeinunix) is not working.
Regards
TIMESTAMPtype? That's an ancient relic from MySQL 1.0. Why notDATETIME?DATETIMEis better I will use it :)DATETIMEorDATEunless you have a very specific reason.