public function index($category = '') { $posts = Post::list_paginate($category); return view('post.list', ['posts' => $posts]); }