database/seeds/SettingSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        \App\Model\Setting::create([
            'key'=>'localCarpoolingAmount',
            'value'=>0.01,
        ]);
        \App\Model\Setting::create([
            'key'=>'information_card_fee',
            'value'=>0.01,
        ]);
        \App\Model\Setting::create([
            'key'=>'information_top_fee',
            'value'=>0.01,
        ]);
        \App\Model\Setting::create([
            'key'=>'shop_fee',
            'value'=>0.01,
        ]);
        \App\Model\Setting::create([
            'key'=>'shop_top_fee',
            'value'=>0.02,
        ]);
        \App\Model\Setting::create([
            'key'=>'shop_fee_two',
            'value'=>0.01,
        ]);
        \App\Model\Setting::create([
            'key'=>'shop_top_fee_two',
            'value'=>0.01,
        ]);
        \App\Model\Setting::create([
            'key'=>'radius',
            'value'=>5,
        ]);
        \App\Model\Setting::create([
            'key'=>'award',
            'value'=>88,
        ]);
        \App\Model\Setting::create([
            'key'=>'driverCertification',
            'value'=>1,
        ]);
        \App\Model\Setting::create([
            'key'=>'informationDisplay',
            'value'=>1,
        ]);
        \App\Model\Setting::create([
            'key'=>'shop_verify',
            'value'=>1,
        ]);
        \App\Model\Setting::create([
            'key'=>'withdrawal_low',
            'value'=>100,
        ]);
    }
public function run ( ) { \ App \ Model \ Setting :: create ( [ 'key' => 'localCarpoolingAmount' , 'value' => 0.01 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'information_card_fee' , 'value' => 0.01 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'information_top_fee' , 'value' => 0.01 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'shop_fee' , 'value' => 0.01 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'shop_top_fee' , 'value' => 0.02 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'shop_fee_two' , 'value' => 0.01 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'shop_top_fee_two' , 'value' => 0.01 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'radius' , 'value' => 5 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'award' , 'value' => 88 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'driverCertification' , 'value' => 1 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'informationDisplay' , 'value' => 1 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'shop_verify' , 'value' => 1 , ] ) ; \ App \ Model \ Setting :: create ( [ 'key' => 'withdrawal_low' , 'value' => 100 , ] ) ; }
Run the database seeds.
Run the database seeds .
// DriverCertification // informationDisplay // 商户入驻是否需要审核 // 0 需要审核 1，无需审核 // 低于当前额度不准提现