public function showProblemas($contest_id) { $contest = Concurso::find($contest_id); $data = ['contest' => $contest, 'problemas' => Problem::all()]; return view('contest/problemas', $data); }
/** * get all problems solved or not */ public function getAllProblems() { return $allProblems = Problem::all(); }
/** * Get all problems * * @return Collection */ public function forAll() { return Problem::all(); }