Пример #1
0
 /**
  * Display the specified resource.
  *
  * @param  int $year
  * @param  int $month
  * @return Response
  */
 public function show($year, $month = null)
 {
     return view('index', ['posts' => Post::archiveFiltered($year, $month)->with('category')->paginate(3)]);
 }