コード例 #1
0
ファイル: PageController.php プロジェクト: jekinney/gypsy-v-3
 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'));
 }
コード例 #2
0
ファイル: PageController.php プロジェクト: jekinney/gypsy-v-3
 public function home(MarketRepository $market, ArticleRepository $article)
 {
     $markets = $market->latest(3);
     $articles = $article->latest();
     return view('frontend.page.index', compact('markets', 'articles'));
 }
コード例 #3
0
 public function index(ArticleRepository $article)
 {
     $categories = $this->category->listingWithArticles();
     $articles = $article->publishedCountWithCommentCount();
     return view('frontend.blog.category.index', compact('categories', 'articles'));
 }