请建议如何通过分页从Laravel查询中对数据库中的JSON对象进行数据过滤。
我在数据库中有 events_date 字段,其值如下:
["01-05-2019","02-05-2019","03-05-2019","04-05-2019","05-05-2019","06-05-2019","07-05-2019","08-05-2019","09-05-2019","10-05-2019","11-05-2019","12-05-2019","13-05-2019","14-05-2019","15-05-2019","16-05-2019","17-05-2019","18-05-2019","19-05-2019","20-05-2019","21-05-2019","22-05-2019","23-05-2019","24-05-2019","25-05-2019","26-05-2019","27-05-2019","28-05-2019","29-05-2019","30-05-2019","31-05-2019"]
这是Laravel中的演员。
protected $casts = [
'event_dates' => 'array'
];
我需要获取等于当前日期或更大至当前日期
的数据每页分页限制为20。