If I execute this code:
$users = Users::count([
'group' => 'date_trunc("day", register_date) as date',
'order' => 'date desc',
]);
I get error, maybe I can user ORM for my example, not use raw sql.
If I execute this code:
$users = Users::count([
'group' => 'date_trunc("day", register_date) as date',
'order' => 'date desc',
]);
I get error, maybe I can user ORM for my example, not use raw sql.