www.gusucode.com > KPPW众包威客PHP开源建站系统 v3.0源码程序 > KPPW/database/seeds/RecommendPositionTableSeeder.php
<?php use Illuminate\Database\Seeder; class RecommendPositionTableSeeder extends Seeder { /** * Auto generated seed file * * @return void */ public function run() { \DB::table('recommend_position')->delete(); \DB::table('recommend_position')->insert(array ( 0 => array ( 'id' => 1, 'name' => '推荐服务商', 'code' => 'HOME_MIDDLE', 'position' => '首页_中部推荐位', 'num' => 8, 'pic' => NULL, 'is_open' => 1, ), 1 => array ( 'id' => 2, 'name' => '成功案例', 'code' => 'HOME_MIDDLE_BOTTOM', 'position' => '首页_中下部推荐位', 'num' => 4, 'pic' => NULL, 'is_open' => 1, ), 2 => array ( 'id' => 3, 'name' => '资讯', 'code' => 'HOME_BOTTOM', 'position' => '首页_底部推荐位', 'num' => 6, 'pic' => NULL, 'is_open' => 1, ), 3 => array ( 'id' => 4, 'name' => '类似任务', 'code' => 'TASKDETAIL_SIDE', 'position' => '任务详情页_侧边栏', 'num' => 5, 'pic' => NULL, 'is_open' => 1, ), 4 => array ( 'id' => 5, 'name' => '类似案例', 'code' => 'CASEINFO_SIDE', 'position' => '成功案例详情页_侧边栏', 'num' => 5, 'pic' => NULL, 'is_open' => 1, ), 5 => array ( 'id' => 6, 'name' => '热门文章', 'code' => 'ARTICLEINFO_SIDE', 'position' => '资讯中心_侧边栏', 'num' => 8, 'pic' => NULL, 'is_open' => 1, ), 6 => array ( 'id' => 7, 'name' => '专业服务商', 'code' => 'SERVICE_SIDE', 'position' => '服务商列表_侧边栏', 'num' => 5, 'pic' => NULL, 'is_open' => 1, ), 7 => array ( 'id' => 8, 'name' => '专业服务商1', 'code' => 'TASKLIST_SIDE', 'position' => '任务列表_侧边栏', 'num' => 5, 'pic' => NULL, 'is_open' => 1, ), 8 => array ( 'id' => 9, 'name' => '热门文章', 'code' => 'ARTICLEDETAIL_SIDE', 'position' => '资讯中心详情_侧边栏', 'num' => 5, 'pic' => NULL, 'is_open' => 1, ), 9 => array ( 'id' => 10, 'name' => '同类任务', 'code' => 'TASKDELIVERY_SIDE', 'position' => '任务竞标投稿_侧边栏', 'num' => 5, 'pic' => NULL, 'is_open' => 1, ), )); } }