public function run() { $faker = Faker::create(); foreach (range(1, 1) as $index) { GraceTime::create(['period' => 3000]); } }
/** * Store a newly created gracetime in storage. * * @return Response */ public function store() { $validator = Validator::make($data = Input::all(), GraceTime::$rules); if ($validator->fails()) { return Redirect::back()->withErrors($validator)->withInput(); } GraceTime::create($data); return Redirect::route('grace_times.index'); }