Laravel Post Index Metode

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