Answers for "laravel post index method"

PHP
0

laravel post index method

public function index()
    {
        $posts = Post::orderBy('title','desc')->paginate(10);
        return view('posts.index')->with('posts',$posts);
    }
Posted by: Guest on September-03-2021

Browse Popular Code Answers by Language