/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $auctions = Auction::getActiveAuctionsPaginated(8); $randomAuction = Auction::getRandomAuctions(1)[0]; // return $randomAuction; return view('overview', compact('auctions', 'randomAuction')); }