app/Http/Controllers/PostsController.php
/**
	 * Show the application dashboard to the user.
	 *
	 * @return Response
	 */
Show the application dashboard to the user.
@return Response
Show the application dashboard to the user . @return Response
public function index()
	{
		$posts = DB::table('posts')->select('id', 'title')->orderBy('id', 'desc')->get();
		return view('posts')->with('posts', $posts);
	}
public function index ( ) { $ posts = DB :: table ( 'posts' ) -> select ( 'id' , 'title' ) -> orderBy ( 'id' , 'desc' ) -> get ( ) ; return view ( 'posts' ) -> with ( 'posts' , $ posts ) ; }
Show the application dashboard to the user.
Show the application dashboard to the user .