Beispiel #1
0
 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();
 }
Beispiel #3
0
 /**
  * Get all problems
  *
  * @return Collection
  */
 public function forAll()
 {
     return Problem::all();
 }