public index ( ) : Illuminate\Http\Response | ||
Résultat | Illuminate\Http\Response |
public function index()
{
$posts = $this->blog->all(setting('post_per_page'));
$links = $posts->links();
return compact('posts', 'links');
}