Méthode d'index de post Laravel

public function index()
    {
        $posts = Post::orderBy('title','desc')->paginate(10);
        return view('posts.index')->with('posts',$posts);
    }
Bad Bat