Beispiel #1
0
 public function index(ArticleRepository $article, MarketRepository $market)
 {
     $article_counts = $article->publishedCountWithCommentCount();
     $user_count = \App\User::count();
     $event_count = $market->currentAndFutureCount();
     return view('backend.page.index', compact('article_counts', 'user_count', 'event_count'));
 }