Is it possible I make a simple query to count how many records I have in a determined period of time like a Year, month or day
help me, count group by product_added with specific month
$parameters['group'] = " DATE_FORMAT(product_added, '%Y%m')"; //date format : 2014-10-09 06:35:04
$group = \App\Models\Products::count($parameters);
like sql
GROUP BY YEAR(product_added), MONTH(product_added)
or
GROUP BY DATE_FORMAT(product_added, '%Y%m');