<?php

use Illuminate\Database\Seeder;

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

        // データの挿入
        $layouts = [
            ['code' => 1, 'name' => 'DK'],
            ['code' => 2, 'name' => 'LDK'],
            ['code' => 3, 'name' => 'R'],
            ['code' => 4, 'name' => 'K'],
            ['code' => 5, 'name' => 'SK'],
            ['code' => 6, 'name' => 'SDK'],
            ['code' => 7, 'name' => 'LK'],
            ['code' => 8, 'name' => 'SLK'],
            ['code' => 9, 'name' => 'SLDK'],
        ];
        DB::table('mst_layouts')->insert($layouts);
    }
}
