コード例 #1
0
ファイル: ContestController.php プロジェクト: DanielAlxx/MOJ
 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();
 }
コード例 #3
0
ファイル: ProblemRepository.php プロジェクト: zamppe/laravel
 /**
  * Get all problems
  *
  * @return Collection
  */
 public function forAll()
 {
     return Problem::all();
 }