public function run()
 {
     $faker = Faker::create();
     foreach (range(1, 10) as $index) {
         Attendance::create([]);
     }
 }
 /**
  * Store a newly created attendance in storage.
  *
  * @return Response
  */
 public function store()
 {
     if (!Sentry::getUser()) {
         return Redirect::route('sessions.create');
     }
     $validator = Validator::make($data = Input::all(), Attendance::$rules);
     if ($validator->fails()) {
         return Redirect::back()->withErrors($validator)->withInput();
     }
     $data['date'] = strtotime($data['date']);
     $data['user_id'] = Sentry::getUser()->id;
     Attendance::create($data);
     return Redirect::route('attendances.index');
 }