public function index() { $winners = $this->winner->getWinnersOfPreviousPeriods(); $currentPeriod = $this->period->checkPeriod(); $periods = $this->period->all(); return view('index', compact('winners', 'currentPeriod', 'periods')); }