/**
  * Create a new user instance after a valid registration.
  *
  * @param  array  $data
  * @return User
  */
 protected function create(array $data)
 {
     $user = User::create(['name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password'])]);
     $user->is_daycare = 1;
     $user->save();
     if ($user->is_daycare) {
         Daycare::create(['name' => $data['daycare_name'], 'timezone' => $data['timezone'], 'user_id' => $user->id]);
     }
     return $user;
 }
 public function run()
 {
     $faker = Faker\Factory::create();
     Daycare::create(['status' => 1, 'name' => $faker->company, 'timezone' => 'America/New_York', 'user_id' => 1]);
 }