/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Action::unguard();
     $description = 'Choose three items from the stock yard with a limit of 1 Coal';
     Action::create(['phase_letter' => 'A', 'min_player' => 1, 'max_player' => 2, 'description' => $description]);
     Action::create(['phase_letter' => 'A', 'min_player' => 3, 'max_player' => 3, 'spaces' => 3, 'description' => $description]);
     Action::create(['phase_letter' => 'A', 'min_player' => 4, 'max_player' => 5, 'spaces' => 4, 'description' => $description]);
     $description = 'Excavate rubble based on the current work rate';
     Action::create(['phase_letter' => 'B', 'min_player' => 1, 'max_player' => 3, 'description' => $description]);
     Action::create(['phase_letter' => 'B', 'min_player' => 4, 'max_player' => 5, 'spaces' => 3, 'description' => $description]);
     $description = 'Convert 3 Iron Ore to 1 Steel Bar or 2 Rubble to 1 Stone upto 3 times';
     Action::create(['phase_letter' => 'C', 'min_player' => 1, 'max_player' => 3, 'spaces' => 1, 'description' => $description]);
     Action::create(['phase_letter' => 'C', 'min_player' => 4, 'max_player' => 4, 'description' => $description]);
     Action::create(['phase_letter' => 'C', 'min_player' => 5, 'max_player' => 5, 'spaces' => 3, 'description' => $description]);
     $description = 'Lay track based on the current work rate';
     Action::create(['phase_letter' => 'D', 'min_player' => 1, 'max_player' => 2, 'spaces' => 1, 'description' => $description]);
     Action::create(['phase_letter' => 'D', 'min_player' => 3, 'max_player' => 3, 'description' => $description]);
     Action::create(['phase_letter' => 'D', 'min_player' => 4, 'max_player' => 5, 'spaces' => 3, 'description' => $description]);
     $description = 'Build on a station space or build an available train';
     Action::create(['phase_letter' => 'E', 'min_player' => 1, 'max_player' => 4, 'description' => $description]);
     Action::create(['phase_letter' => 'E', 'min_player' => 5, 'max_player' => 5, 'spaces' => 3, 'description' => $description]);
     $description = 'Choose 1 of the avaliable Contracts to take';
     Action::create(['phase_letter' => 'F', 'min_player' => 1, 'max_player' => 2, 'spaces' => 1, 'description' => $description]);
     Action::create(['phase_letter' => 'F', 'min_player' => 3, 'max_player' => 5, 'description' => $description]);
     $description = 'Move the surveyour 1 station up the mountain';
     Action::create(['phase_letter' => 'G', 'min_player' => 1, 'max_player' => 5, 'spaces' => null, 'description' => $description]);
     Action::reguard();
     $this->command->info('Action table seeded!');
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Type::unguard();
     $game = Type::create(['id' => 1, 'name' => 'Base']);
     $actions = Action::where('phase_letter', '>=', 'A')->where('phase_letter', '<=', 'G')->where('min_player', '>=', 1)->where('min_player', '<=', 5)->get()->pluck('id')->toArray();
     $game->actions()->attach($actions);
     $game->contracts()->attach([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]);
     $game->trains()->attach(['1', '1L', '2', '3', '4', '5', '6', '7', '11', '12', '13', '22', '23']);
     $game->stations()->attach([1, 2, 3, 4, 5, 6, 7, 8, 9]);
     Type::reguard();
     $this->command->info('Base Game Created!');
 }