app/Http/Controllers/IndexController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
		$posts = Post::orderBy('created_at', 'DESC') ->paginate(12);
        return view('index')->with('posts' , $posts);
    }
public function index ( ) { $ posts = Post :: orderBy ( 'created_at' , 'DESC' ) -> paginate ( 12 ) ; return view ( 'index' ) -> with ( 'posts' , $ posts ) ; }
Display a listing of the resource.
Display a listing of the resource .