예제 #1
0
 /**
  * Dashboard index.
  *
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function index()
 {
     $postsCount = Post::count();
     $commentsCount = Comment::whereSeen(0)->count();
     return view('back.index', compact('postsCount', 'commentsCount'));
 }