Ejemplo n.º 1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $faker = Faker\Factory::create();
     foreach (range(1, 50) as $index) {
         Exammocks::create(['template_id' => 1, 'title' => $faker->name, 'noofquestions' => 20, 'time' => 20, 'created_by' => 1, 'modified_by' => 1, 'status' => 1]);
     }
 }
Ejemplo n.º 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Exammocks::destroy($id);
     return redirect('exammocks');
 }