I am writing an application using Laravel Framework
I want a whole post about a year for the tenth Monthly View Categories (Not a large number of posts per month)
View created a division into 12 parts, each part of a month
I want to know how I can write entries from an array of choices each month and the same month in my box, Some months are not any posts
public function index()
{
$histories = \App\history::where('DATE','>=',$date1)->where('DATE','<=',$date2)->get();
return view ('year_posts',compact('histories'));
}
this is the page that i want to show post of each month in the box
via mehran marandi