take(1)->get(); // Latest Torrents Block $torrents = Torrent::latest()->take(5)->get(); $best = Torrent::latest('seeders')->take(5)->get(); $leeched = Torrent::latest('leechers')->take(5)->get(); $dying = Torrent::where('seeders', 1)->where('times_completed', '>=', '1')->latest('leechers')->take(5)->get(); $dead = Torrent::where('seeders', 0)->latest('leechers')->take(5)->get(); // Latest Topics Block $topics = Topic::latest()->take(5)->get(); // Latest Posts Block $posts = Post::latest()->take(5)->get(); //Online Block $user = User::oldest('username')->get(); $groups = Group::oldest('position')->get(); //Featured Torrents $featured = FeaturedTorrent::with('torrent')->get(); //Latest Poll $poll = Poll::latest()->first(); return view('home.home', [ 'user' => $user, 'groups' => $groups, 'articles' => $articles, 'torrents' => $torrents, 'best' => $best, 'dying' => $dying, 'leeched' => $leeched, 'dead' => $dead, 'topics' => $topics, 'posts' => $posts, 'featured' => $featured, 'poll' => $poll, ]); } }