<?php

use Illuminate\Database\Seeder;

class MstRoadDirectionsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // データのクリア
        DB::table('mst_road_directions')->truncate();

        // データの挿入
        $road_directions = [
            ['code' => 1, 'name' => '北'],
            ['code' => 2, 'name' => '南'],
            ['code' => 3, 'name' => '東'],
            ['code' => 4, 'name' => '西'],
            ['code' => 5, 'name' => '北西'],
            ['code' => 6, 'name' => '北東'],
            ['code' => 7, 'name' => '南西'],
            ['code' => 8, 'name' => '南東'],
        ];
        DB::table('mst_road_directions')->insert($road_directions);
    }
}
