Beispiel #1
0
 public function postIndex()
 {
     $test = Test::all();
     $test = array('username' => Input::get('frmName'), 'email' => Input::get('frmEmail'), 'comment' => Input::get('frmComment'));
     // save the guestbook entry to the database
     Test::create($test);
     return Redirect::to('/');
 }
Beispiel #2
0
 public function index()
 {
     $tests = Test::all();
     return view('dashboard.tests.index', compact('tests'));
 }
 public function getindex()
 {
     $tests = Test::all();
     return view('superadmin.testindex')->with('tests', $tests);
 }
 public function index()
 {
     $test = Test::all();
     //获取所有记录bad
     return $this->collection($test, new TestTransformer());
 }
Beispiel #5
0
 public function index()
 {
     $tests = [];
     $test = new Test();
     $query = $test->all();
     $query = $this->test->select('id_test', 'test_course', 'test_name', 'start', 'end', 'test_type')->get();
     foreach ($query as $test) {
         if ($test->test_course != 'Рыбина') {
             //проверка, что тест открыт и он не из Рыбинских
             array_push($tests, $test->test_name);
             //название тренировочного теста состоит из слова "Тренировочный" и
             //самого названия теста
         }
     }
     print_r(count($tests));
     return view('generator.index', compact('tests'));
 }