i'm trying to create timeline with laravel. I just want to grouping posts upon year like this:
2015
------
post1, created in 2015
post2, created in 2015
.
.
------
2014
post1, created in 2014
post1, created in 2014
.
.
I just want to print posts in view with this format.
I did not figure query for this build with laravel and eloquent.