public function run() { $faker = Faker::create(); foreach (range(1, 10) as $index) { PodScheduleException::create(['pod_id' => rand(1, 10), 'timespan' => $faker->numberBetween($min = 1000, $max = 9000)]); } }
/** * Store a newly created podscheduleexception in storage. * * @return Response */ public function store() { $validator = Validator::make($data = Input::all(), PodScheduleException::$rules); if ($validator->fails()) { return Redirect::back()->withErrors($validator)->withInput(); } PodScheduleException::create($data); return Redirect::route('pod_schedule_exceptions.index'); }