Exemplo n.º 1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $faker = Faker::create('pt_PT');
     /*  $usersNick[] = User::lists('nickname');
         $userCount = User::all()->count();
         $max_nicks = count($usersNick);*/
     for ($i = 0; $i < 5; $i++) {
         Game::insert(array('gameName' => $faker->numerify('Game#####'), 'gameOwner' => $faker->lastName, 'lines' => $faker->numberBetween(2, 10), 'columns' => $faker->numberBetween(2, 10), 'maxPlayers' => $faker->numberBetween(2, 10), 'joinedPlayers' => $faker->numberBetween(0, 2), 'isPrivate' => 0, 'status' => 'Waiting', 'winner' => null));
     }
 }