SpotTableSeeder.php 822 Bytes
<?php

use Carbon\Carbon;
use Illuminate\Database\Seeder;

class SpotTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $insert = [
            [
                'id' => 23,
                'spotname' => '虎丘',
                'business_id' => 5,
                'main_title' => 'sdffasa',
                'vic_title' => 'sdfsa',
                'wx_logo' => 'sdfaf',
                'go_url' => 'sfda',
                'page_id' => 1,
                'code' => 'test',
                'time' => Carbon::now(),
                'overtime' => Carbon::now(),
                'update_at' => Carbon::now(),
                'create_at' => Carbon::now(),
            ],

        ];
        DB::table('spot')->insert($insert);
    }
}