public function index(Request $request)
	{
		
		$posts = Post::all();
		
		$bestTag = Tag::with('postCount')->get()->sortByDesc('postCount');
		
		$bestCat = Category::with('postCount')->get()->sortByDesc('postCount');
		
		\Debugbar::info($bestTag);
		
		return view('maikblog::table', [
				'posts' => $posts,
				'best_tag' => $bestTag,
				'best_cat' => $bestCat,
		]);
	}
public function index(Request $request)
	{
		
		$posts = Post::all();
		
		$bestTag = Tag::with('postCount')->get()->sortByDesc('postCount');
		
		$bestCat = Category::with('postCount')->get()->sortByDesc('postCount');
		
		\Debugbar::info($bestTag);
		
		return view('maikblog::table', [
				'posts' => $posts,
				'best_tag' => $bestTag,
				'best_cat' => $bestCat,
		]);
	}
public function index ( Request $ request ) { $ posts = Post :: all ( ) ; $ bestTag = Tag :: with ( 'postCount' ) -> get ( ) -> sortByDesc ( 'postCount' ) ; $ bestCat = Category :: with ( 'postCount' ) -> get ( ) -> sortByDesc ( 'postCount' ) ; \ Debugbar :: info ( $ bestTag ) ; return view ( 'maikblog::table' , [ 'posts' => $ posts , 'best_tag' => $ bestTag , 'best_cat' => $ bestCat , ] ) ; }
Display a list of all blog post to admin.

@param  Request  $request
@return Response
Display a list of all blog post to admin .