I want count passengers and the result group by month and year maybe like this (just an example), so what's query on laravel to call like this ?
{
2019 => [
January=>0,
Februari=>0,
March=>0,
April=>0,
May=>0,
June=>0,
July=>0,
August=>0,
September=>0,
October=>0,
November=>0,
December=>2,
],
2020 => [
January=>0,
Februari=>0,
March=>4,
April=>2,
May=>1,
June=>0,
July=>0,
August=>0,
September=>0,
October=>0,
November=>0,
December=>0,
],
}
but if that's not possible, I want to know the query to result group by month just in one year on laravel thank you