Metoda indeksu Laravel Post

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