laravel api archive group by dates

laravel api archive group by dates