I have transactions table :
My table architecture :
id | item_name | quantity | created_at
I have try many method but its not work (link : Laravel Eloquent get results grouped by days.
I want to display it like this :
Example :
Qty : xxx Month : July
Qty : xxx Month : October
Qty : xxx Month : November
How to convert from created_at column to month only grouping and display it as Word instead of numbers and then get count of grouping quantity in that month?
Thank you
use eloquent date function to find only the date, you can use month to get the month or year to get only the year.
For example:
In case you don't want to use carbon