Eloquent 如何查询具体时间
例如我需要查询created_at
<=2019-12-10 05:10:00
的数据,我应该怎么查询,尝试过以下两种方案,结果都不正确,希望知道的朋友指导下。
1、whereDate('created_at', '<=', 2019-12-10')->whereTime('created_at', '<=', '05:10:00')
2、where('created_at', '<=', '2019-12-10 05:10:00')
推荐文章: