/**
  * 
  * @return type
  */
 public function saveUrls(ScraperInterface $scrapper)
 {
     $keyword = Request::input('keyword');
     if ($keyword == '') {
         return Response::json(array('success' => false, 'error' => 'Please enter a keyword'), 400);
     }
     $links = $scrapper->getUrls($keyword);
     if (count($links) === 0) {
         return Response::json(array('success' => false, 'error' => 'There were no urls found...'), 400);
     }
     $k = Keyword::where('value', '=', $keyword)->first();
     if ($k === null) {
         $keywordValidator = Validator::make(['value' => $keyword], ['value' => 'required|unique:keywords']);
         if (!$keywordValidator->fails()) {
             $k = Keyword::create(['value' => $keyword]);
         } else {
             return Response::json(array('success' => false, 'error' => 'Error has occurred...'), 400);
         }
     }
     foreach ($links as $link) {
         $LinkValidator = Validator::make(['keyword_id' => $k->id, 'rank' => $link['rank'], 'value' => $link['value']], ['keyword_id' => 'required|numeric', 'rank' => 'required|numeric', 'value' => 'required|url']);
         if (!$LinkValidator->fails()) {
             Link::create(array('keyword_id' => $k->id, 'rank' => $link['rank'], 'value' => $link['value']));
         }
     }
     return Response::json(array('success' => true));
 }
 /**
  * @return Category search page link and store it to database
  */
 public function getIndex()
 {
     //$ua = 'Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0 (ROBOT)';
     $client = new Client();
     $client->setHeader('User-Agent', "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36");
     //Set proxy using tor
     $guzzleClient = new \GuzzleHttp\Client(['curl' => [CURLOPT_PROXY => '127.0.0.1:9050', CURLOPT_PROXYTYPE => CURLPROXY_SOCKS5]]);
     $client->setClient($guzzleClient);
     $crawler = $client->request('GET', 'http://auburn.craigslist.org/apa');
     $isBlock = $crawler->filter('p')->text();
     $isRun = true;
     while ($isRun) {
         if (strpos($isBlock, 'blocked') != false) {
             $this->torNew();
             //return $this->getIndex();
         } else {
             $crawler->filter('a.i')->each(function ($node) {
                 $url = $node->attr("href");
                 //$link = $node->filter('a')->first();
                 $text = $node->text();
                 $fullUrl = "http://auburn.craigslist.org" . $url;
                 //$scrap::create(['url' => $url, 'title' => $text ]);
                 Link::create(['url' => $fullUrl, 'title' => $text]);
             });
             $isRun = false;
         }
     }
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('links')->insert(['link' => 'masterpowers', 'user_id' => 1, 'sp_link_id' => null, 'active' => true, 'date_activated' => \Carbon\Carbon::now(), 'created_at' => \Carbon\Carbon::now(), 'updated_at' => \Carbon\Carbon::now()]);
     $faker = Faker\Factory::create();
     // Link::truncate();
     foreach (range(1, 50) as $index) {
         Link::create(['link' => str_replace('.', '_', $faker->unique()->userName), 'user_id' => $index + 1, 'sp_link_id' => $index, 'sp_user_id' => $index, 'active' => true, 'date_activated' => \Carbon\Carbon::now(), 'created_at' => \Carbon\Carbon::now(), 'updated_at' => \Carbon\Carbon::now()]);
     }
 }
示例#4
0
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     $link = Link::findOrFail($id);
     if (!$link) {
         Link::create(Input::all());
         return $this->respondCreated('Link was created');
     }
     $link->fill(Input::all())->save();
     return $this->respondCreated('Link was updated');
 }
示例#5
0
 public function store(Request $request)
 {
     //dd($request->all());
     $this->validate($request, ['name' => 'required|min:2', 'url' => 'required|url', 'status' => 'required|in:0,1']);
     $input = $request->except('_token');
     Link::create(['name' => $input['name'], 'url' => $input['url'], 'description' => $input['description'], 'status' => $input['status']]);
     Flash::success('لینک با موفقیت ایجاد گردید');
     if ($request->has('create-new')) {
         return redirect()->back();
     } elseif ($request->has('create-close')) {
         return redirect(route('xadmin.link.index'));
     }
 }
示例#6
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(CreateLinkRequest $request)
 {
     $blank = 0;
     if ($request->input('blank') === 'on') {
         $blank = 1;
     }
     $link = Link::create(['title' => $request->input('title'), 'blank' => $blank, 'url' => $request->input('url'), 'project_id' => $request->input('project_id')]);
     if ($link) {
         flash()->success('Link created successfully!');
     } else {
         flash()->error('Oops! Something went wrong.');
     }
     return redirect(route('backend'));
 }
示例#7
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(LinkRequest $request)
 {
     $rq = $request->all();
     $link = Link::create($rq);
     if (isset($rq['artist_id']) && is_array($rq['artist_id'])) {
         $rq['artist_id'] = array_unique($rq['artist_id'], SORT_NUMERIC);
         foreach ($rq['artist_id'] as $aid) {
             $link_a = ArtistLink::create(['artist_id' => $aid, 'link_id' => $link->id]);
         }
     }
     if (isset($rq['release_id']) && is_array($rq['release_id'])) {
         $rq['release_id'] = array_unique($rq['release_id'], SORT_NUMERIC);
         foreach ($rq['release_id'] as $rid) {
             $link_r = LinkRelease::create(['release_id' => $rid, 'link_id' => $link->id]);
         }
     }
     if (isset($rq['track_id']) && is_array($rq['track_id'])) {
         $rq['track_id'] = array_unique($rq['track_id'], SORT_NUMERIC);
         foreach ($rq['track_id'] as $tid) {
             $link_t = LinkTrack::create(['track_id' => $tid, 'link_id' => $link->id]);
         }
     }
     return redirect()->route('link.show', ['link' => $link->id])->with('alert-success', [trans('htmusic.saved')]);
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  \App\Http\Requests\LinkRequest  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Requests\LinkRequest $request)
 {
     $input = $request->all();
     Link::create($input);
     return redirect(action('Goenitz\\LinkController@index'));
 }
示例#9
0
 public function run()
 {
     $xls = 'database/seeds/seeder.xlsm';
     $book = Excel::load($xls, 'UTF-8')->all();
     foreach ($book as $sheet) {
         if ($sheet->getTitle() === 'categories') {
             Category::truncate();
             foreach ($sheet as $row) {
                 $category = Category::create(['id' => $row->id, 'parent_id' => $row->parent_id, 'level' => $row->level, 'type' => $row->type, 'menutype' => $row->menutype, 'title' => $row->title, 'sef' => $row->sef, 'class' => $row->class, 'body' => $row->body, 'image' => $row->image, 'metatitle' => $row->metatitle, 'metakey' => $row->metakey, 'metadesc' => $row->metadesc]);
             }
         }
         if ($sheet->getTitle() === 'furnitura') {
             Furnitura::truncate();
             foreach ($sheet as $row) {
                 if (!empty($row->category_id)) {
                     $menu = Furnitura::create(['id' => $row->id, 'category_id' => $row->category_id, 'cat2_id' => $row->cat2_id, 'title' => $row->title, 'sef' => $row->sef, 'introtext' => $row->introtext, 'fulltext' => $row->fulltext, 'artikul' => $row->artikul, 'otdelka' => $row->otdelka, 'pcs' => $row->pcs, 'description' => $row->description, 'metatitle' => $row->metatitle, 'metakey' => $row->metakey, 'metadesc' => $row->metadesc, 'hits' => $row->hits]);
                 }
             }
         }
         if ($sheet->getTitle() === 'links') {
             Link::truncate();
             foreach ($sheet as $row) {
                 if (!empty($row->category_id)) {
                     $menu = Link::create(['category_id' => $row->category_id, 'title' => $row->title, 'url' => $row->url, 'description' => $row->description, 'version' => $row->version, 'metatitle' => $row->metatitle, 'metakey' => $row->metakey, 'metadesc' => $row->metadesc, 'hits' => $row->hits]);
                 }
             }
         }
         if ($sheet->getTitle() === 'news') {
             News::truncate();
             foreach ($sheet as $row) {
                 if (!empty($row->category_id)) {
                     $menu = News::create(['category_id' => $row->category_id, 'title' => $row->title, 'sef' => $row->sef, 'introtext' => $row->introtext, 'fulltext' => $row->fulltext, 'image' => $row->image, 'metatitle' => $row->metatitle, 'metakey' => $row->metakey, 'metadesc' => $row->metadesc, 'hits' => $row->hits, 'created_at' => $row->created_at]);
                 }
             }
         }
         if ($sheet->getTitle() === 'steklo') {
             Page::truncate();
             foreach ($sheet as $row) {
                 if (!empty($row->category_id)) {
                     $menu = Page::create(['category_id' => $row->category_id, 'title' => $row->title, 'sef' => $row->sef, 'introtext' => $row->introtext, 'fulltext' => $row->fulltext, 'image' => $row->image, 'metatitle' => $row->metatitle, 'metakey' => $row->metakey, 'metadesc' => $row->metadesc, 'hits' => $row->hits]);
                 }
             }
         }
         if ($sheet->getTitle() === 'uslugi') {
             Uslugi::truncate();
             foreach ($sheet as $row) {
                 if (!empty($row->category_id)) {
                     $menu = Uslugi::create(['category_id' => $row->category_id, 'title' => $row->title, 'sef' => $row->sef, 'introtext' => $row->introtext, 'fulltext' => $row->fulltext, 'image' => $row->image, 'metatitle' => $row->metatitle, 'metakey' => $row->metakey, 'metadesc' => $row->metadesc, 'hits' => $row->hits]);
                 }
             }
         }
         if ($sheet->getTitle() === 'faq') {
             Faq::truncate();
             foreach ($sheet as $row) {
                 if (!empty($row->category_id)) {
                     $menu = Faq::create(['category_id' => $row->category_id, 'title' => $row->title, 'sef' => $row->sef, 'introtext' => $row->introtext, 'fulltext' => $row->fulltext, 'image' => $row->image, 'metatitle' => $row->metatitle, 'metakey' => $row->metakey, 'metadesc' => $row->metadesc, 'hits' => $row->hits]);
                 }
             }
         }
         if ($sheet->getTitle() === 'objects') {
             Object::truncate();
             foreach ($sheet as $row) {
                 if (!empty($row->category_id)) {
                     $menu = Object::create(['category_id' => $row->category_id, 'title' => $row->title, 'sef' => $row->sef, 'introtext' => $row->introtext, 'fulltext' => $row->fulltext, 'image' => $row->image, 'metatitle' => $row->metatitle, 'metakey' => $row->metakey, 'metadesc' => $row->metadesc, 'hits' => $row->hits]);
                 }
             }
         }
     }
 }
示例#10
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('links')->truncate();
     //各地召會
     Link::create(['name' => '台北市', 'link' => 'https://www.churchintaipei.org/', 'type_id' => 1]);
     Link::create(['name' => '基隆市', 'link' => 'http://home.so-net.net.tw/klchurch/', 'type_id' => 1]);
     Link::create(['name' => '新北市', 'link' => 'http://www.churchinntc.org/', 'type_id' => 1]);
     Link::create(['name' => '中壢市', 'link' => 'https://sites.google.com/site/churchincg/', 'type_id' => 1]);
     Link::create(['name' => '楊梅市', 'link' => 'http://blog.xuite.net/ymch130/blog', 'type_id' => 1]);
     Link::create(['name' => '桃園市', 'link' => 'http://www.tychurch.org.tw/', 'type_id' => 1]);
     Link::create(['name' => '龜山區', 'link' => 'https://kschurch.wordpress.com/', 'type_id' => 1]);
     Link::create(['name' => '新竹市', 'link' => 'http://www2.hcchurch.org.tw/churchHsinchu/index.php', 'type_id' => 1]);
     Link::create(['name' => '竹北市', 'link' => 'http://www.zhubei-church.org.tw/index.php', 'type_id' => 1]);
     Link::create(['name' => '苗栗市', 'link' => 'http://lukeruth.myweb.hinet.net/Miaoli.html', 'type_id' => 1]);
     Link::create(['name' => '台中市', 'link' => 'http://www.churchintaichung.org/', 'type_id' => 1]);
     Link::create(['name' => '彰化市', 'link' => 'http://blog.xuite.net/ch7225841/ch152', 'type_id' => 1]);
     Link::create(['name' => '和美鎮', 'link' => 'http://myhome.chnew.com.tw/', 'type_id' => 1]);
     Link::create(['name' => '員林鎮', 'link' => 'http://blog.xuite.net/churchinyl/wretch', 'type_id' => 1]);
     Link::create(['name' => '南投市', 'link' => 'http://nantou.localchurch.tw/', 'type_id' => 1]);
     Link::create(['name' => '草屯鎮', 'link' => 'http://ttjh-recovery.com/', 'type_id' => 1]);
     Link::create(['name' => '埔里鎮', 'link' => 'http://www.churchinpuli.org/', 'type_id' => 1]);
     Link::create(['name' => '朴子市', 'link' => 'http://www.tacocity.com.tw/potze/', 'type_id' => 1]);
     Link::create(['name' => '大林鎮', 'link' => 'http://www.cims.org.tw/', 'type_id' => 1]);
     Link::create(['name' => '台南市', 'link' => 'http://www.tnnch.org.tw/', 'type_id' => 1]);
     Link::create(['name' => '高雄市', 'link' => 'http://www.khhchurch.org.tw/', 'type_id' => 1]);
     Link::create(['name' => '屏東市', 'link' => 'http://pingtungchurch33.blogspot.tw/', 'type_id' => 1]);
     Link::create(['name' => '中部相調中心', 'link' => 'http://ctbc.recovery.org.tw/', 'type_id' => 1]);
     //  週訊家訊
     Link::create(['name' => '台北市', 'link' => 'https://www.churchintaipei.org/2011-05-10-16-46-59/weekly-news-archive-2.html', 'type_id' => 2]);
     Link::create(['name' => '新北市', 'link' => 'http://www.churchinntc.org/joomla721/index.php/2012-12-18-00-52-29/2012-05-08-04-49-45', 'type_id' => 2]);
     Link::create(['name' => '中壢市', 'link' => 'https://app.box.com/s/c85ec52e6776c45f17c8', 'type_id' => 2]);
     Link::create(['name' => '新竹市', 'link' => 'http://www2.hcchurch.org.tw/churchHsinchu/index.php/weekly/weekly-news-archive', 'type_id' => 2]);
     Link::create(['name' => '台中市', 'link' => 'https://www.churchintaichung.org/teline/index.php/weekly-issues/weekly-news-archive', 'type_id' => 2]);
     Link::create(['name' => '台南市', 'link' => 'https://www.churchintaichung.org/tnnchorg/index.php/weekly-news/pdf', 'type_id' => 2]);
     Link::create(['name' => '高雄市', 'link' => 'http://www.khhchurch.org.tw/WPYear.asp', 'type_id' => 2]);
     //地址電話
     Link::create(['name' => '台灣眾召會通訊錄', 'link' => 'https://docs.google.com/spreadsheets/d/11UgW35mjTh70--wY8v11QY4CNkJjI8V4MLW-ghwFDL0/edit?usp=sharing', 'type_id' => 4]);
     Link::create(['name' => '台灣眾召會地圖', 'link' => 'https://www.google.com/fusiontables/embedviz?viz=MAP&q=select+col6+from+2873307+&h=false&lat=23.650099217027073&lng=120.13626765000004&z=8&t=1&l=col6&y=3&tmplt=-1', 'type_id' => 4]);
     //台灣福音書房
     Link::create(['name' => '聖經詩歌', 'link' => 'http://www.twgbr.org.tw/Diary_A.asp?DCID=DC2013080116301288', 'type_id' => 5]);
     Link::create(['name' => '經典著作', 'link' => 'http://www.twgbr.org.tw/Diary_A.asp?DCID=DC2013070114323913', 'type_id' => 5]);
     Link::create(['name' => '暢銷書籍', 'link' => 'http://www.twgbr.org.tw/Diary_A.asp?DCID=DC2013070114350598', 'type_id' => 5]);
     Link::create(['name' => '基本訂戶', 'link' => 'http://www.twgbr.org.tw/Diary_A.asp?DCID=DC2013070114354528', 'type_id' => 5]);
     Link::create(['name' => '影音', 'link' => 'http://www.twgbr.org.tw/Diary_A.asp?DCID=DC2013080123514051', 'type_id' => 5]);
     Link::create(['name' => '電子', 'link' => 'http://www.twgbr.org.tw/Diary_A.asp?DCID=DC2013071210075373', 'type_id' => 5]);
     Link::create(['name' => '福音用品', 'link' => 'http://www.twgbr.org.tw/Product_ClassB.asp?Sel=CA&CAID=CA2013070316243986', 'type_id' => 5]);
     Link::create(['name' => '圖書目錄', 'link' => 'http://www.twgbr.org.tw/Product_List.asp?UBID=&Sel=CA&CAID=CA20100412160645&CBID=CB2013062723065899', 'type_id' => 5]);
     Link::create(['name' => '線上讀書會', 'link' => 'https://www.facebook.com/TWGospelBookroom', 'type_id' => 5]);
     Link::create(['name' => 'MP3基本訂戶', 'link' => 'http://mp3.twgbr.org.tw/', 'type_id' => 5]);
     //水流職事站
     Link::create(['name' => '中文', 'link' => 'http://www.lsmchinese.org/', 'type_id' => 6]);
     Link::create(['name' => '英文', 'link' => 'http://www.lsm.org/', 'type_id' => 6]);
     Link::create(['name' => '信息綱目', 'link' => 'http://www.lsmchinese.org/big5/09file_download/index.asp', 'type_id' => 6]);
     Link::create(['name' => '圖書服務', 'link' => 'http://www.lsmchinese.org/big5/06book_services/index.htm', 'type_id' => 6]);
     Link::create(['name' => '線上閱讀', 'link' => 'http://www.lsmchinese.org/big5/07online_reading/index.htm', 'type_id' => 6]);
     Link::create(['name' => '線上影音', 'link' => 'http://www.lsmchinese.org/big5/08media_online/index.htm', 'type_id' => 6]);
     Link::create(['name' => '福音園地', 'link' => 'http://www.lsmchinese.org/big5/01gospel/index.asp', 'type_id' => 6]);
     Link::create(['name' => '初信造就', 'link' => 'http://www.lsmchinese.org/big5/02new_believer/index.asp', 'type_id' => 6]);
     Link::create(['name' => '聖徒成全', 'link' => 'http://www.lsmchinese.org/big5/03perfect/index.asp', 'type_id' => 6]);
     Link::create(['name' => '每日餵養', 'link' => 'http://www.lsmchinese.org/big5/05daily_nourishment/index.htm', 'type_id' => 6]);
     Link::create(['name' => '讀經一年一遍', 'link' => 'http://www.lsmchinese.org/cgi-bin/bible365/index.asp', 'type_id' => 6]);
     Link::create(['name' => 'Bookstore', 'link' => 'http://www.livingstream.com/index.html', 'type_id' => 6]);
     Link::create(['name' => 'Webcast', 'link' => 'http://www.lsmwebcast.com/', 'type_id' => 6]);
     //全時間訓練中心
     Link::create(['name' => '台北', 'link' => 'http://www.fttt.org.tw/', 'type_id' => 7]);
     Link::create(['name' => '美地季報', 'link' => 'http://www.fttt.org.tw/Main.php?Quarterly&Ch/', 'type_id' => 7]);
     Link::create(['name' => '開展報導', 'link' => 'https://sites.google.com/site/2014propagation2/', 'type_id' => 7]);
     // Link::create(['name' => '安那翰', 'link' => 'http://www.ftta.org/', 'type_id' => 7]);
     // Link::create(['name' => '馬拉閔', 'link' => 'http://fttmalabon.org/', 'type_id' => 7]);
     Link::create(['name' => '莫斯科', 'link' => '', 'type_id' => 7]);
     Link::create(['name' => '漢彌敦', 'link' => 'http://www.nztc.ac.nz/', 'type_id' => 7]);
     Link::create(['name' => '雅加達', 'link' => '', 'type_id' => 7]);
     Link::create(['name' => '首爾', 'link' => 'http://www.ftts.org/', 'type_id' => 7]);
     Link::create(['name' => '倫敦', 'link' => 'http://www.fttl.org/', 'type_id' => 7]);
     Link::create(['name' => '曼谷', 'link' => '', 'type_id' => 7]);
     Link::create(['name' => '梳邦再也', 'link' => 'http://www.fttmy.org/', 'type_id' => 7]);
     Link::create(['name' => '亞松森', 'link' => 'http://www.etc-c.org/', 'type_id' => 7]);
     Link::create(['name' => '墨西哥', 'link' => 'http://www.etcmx.org/', 'type_id' => 7]);
     Link::create(['name' => '香港', 'link' => '', 'type_id' => 7]);
     Link::create(['name' => '東京', 'link' => '', 'type_id' => 7]);
     //生命教育課程
     Link::create(['name' => '得榮基金會', 'link' => 'http://www.glory.org.tw/', 'type_id' => 8]);
     Link::create(['name' => '後續行動', 'link' => '', 'type_id' => 8]);
     Link::create(['name' => '牧養照顧', 'link' => '', 'type_id' => 8]);
     Link::create(['name' => '牧養照顧', 'link' => '', 'type_id' => 8]);
     Link::create(['name' => '校園推廣', 'link' => '', 'type_id' => 8]);
     Link::create(['name' => '師資引進', 'link' => '', 'type_id' => 8]);
     Link::create(['name' => '安德烈小棧', 'link' => 'https://sites.google.com/a/glory.org.tw/andrew/', 'type_id' => 8]);
     //壯年班成全
     Link::create(['name' => '安那翰', 'link' => 'http://www.fttamidage.org/', 'type_id' => 9]);
     Link::create(['name' => '南投', 'link' => 'http://mtt.recovery.org.tw/', 'type_id' => 9]);
     //真理辨正
     Link::create(['name' => '真理辨正', 'link' => 'http://www.cftfc.com/', 'type_id' => 10]);
     Link::create(['name' => '專家證詞', 'link' => '', 'type_id' => 10]);
     Link::create(['name' => '真理', 'link' => '', 'type_id' => 10]);
     Link::create(['name' => '信仰', 'link' => '', 'type_id' => 10]);
     // Link::create(['name' => '實行', 'link' => '', 'type_id' => 10]);
     Link::create(['name' => '真理論壇', 'link' => 'http://defenseoftruth.tychurch.org.tw/triune/index.htm', 'type_id' => 10]);
     Link::create(['name' => '肯定與否定', 'link' => 'http://www.lsmchinese.org/big5/07online_reading/a&c/', 'type_id' => 10]);
     Link::create(['name' => '可信靠的話', 'link' => 'http://afaithfulword.org/chinese/index.html', 'type_id' => 10]);
     Link::create(['name' => '台灣基督徒信仰研究學會', 'link' => 'https://www.cbri.org.tw/', 'type_id' => 10]);
     //電子嗎哪
     Link::create(['name' => '繁體中文', 'link' => 'http://www.emanna.com/chineseTraditional/index.html', 'type_id' => 11]);
     Link::create(['name' => '簡體中文', 'link' => 'http://www.emanna.com/chineseSimplified/index.html', 'type_id' => 11]);
     Link::create(['name' => '英文', 'link' => 'http://www.emanna.com/', 'type_id' => 11]);
     Link::create(['name' => '西班牙文', 'link' => 'http://www.emanna.com/espanol/index.html', 'type_id' => 11]);
     Link::create(['name' => '俄文', 'link' => 'http://www.emanna.com/russian/index.html', 'type_id' => 11]);
     Link::create(['name' => '德文', 'link' => 'http://www.emanna.com/german/index.html', 'type_id' => 11]);
     Link::create(['name' => '日文', 'link' => 'http://www.emanna-japan.com/', 'type_id' => 11]);
     //古教會歷史
     Link::create(['name' => '簡體《EKKLESIA HISTORY》', 'link' => 'http://ekklesiahistory.fttt.org.tw/gb2312/index.html', 'type_id' => 12]);
     Link::create(['name' => '卷一', 'link' => 'http://ekklesiahistory.fttt.org.tw/big5/book01/index.html', 'type_id' => 12]);
     Link::create(['name' => '卷二', 'link' => 'http://ekklesiahistory.fttt.org.tw/big5/book02/index.html', 'type_id' => 12]);
     Link::create(['name' => '卷三', 'link' => 'http://ekklesiahistory.fttt.org.tw/big5/book03/index.html', 'type_id' => 12]);
     Link::create(['name' => '卷四', 'link' => 'http://ekklesiahistory.fttt.org.tw/big5/book04/index.html', 'type_id' => 12]);
     Link::create(['name' => '卷五', 'link' => 'http://ekklesiahistory.fttt.org.tw/big5/book05/index.html', 'type_id' => 12]);
     Link::create(['name' => '卷六', 'link' => 'http://ekklesiahistory.fttt.org.tw/big5/book06/index.html', 'type_id' => 12]);
     Link::create(['name' => '卷七', 'link' => 'http://ekklesiahistory.fttt.org.tw/big5/book07/index.html', 'type_id' => 12]);
     Link::create(['name' => '卷八', 'link' => 'http://ekklesiahistory.fttt.org.tw/big5/book08/index.html', 'type_id' => 12]);
     //精選日文網站
     Link::create(['name' => '日本福音書房', 'link' => 'http://www.jgbr.com/', 'type_id' => 13]);
     Link::create(['name' => '地方召會、主的恢復', 'link' => 'http://www.jgw.or.jp/', 'type_id' => 13]);
     Link::create(['name' => '今時代神聖啟示的先見─倪柝聲', 'link' => 'http://www.watchman-nee.jp/', 'type_id' => 13]);
     Link::create(['name' => '向聽障者世界開啟聖經真理', 'link' => 'http://www.dgw-in-japan.com/', 'type_id' => 13]);
     Link::create(['name' => '以斯拉的職事', 'link' => 'http://www.geocities.jp/ezrasministry/', 'type_id' => 13]);
     //精選英文網站
     Link::create(['name' => 'Beseeching', 'link' => 'http://www.beseeching.org/', 'type_id' => 14]);
     Link::create(['name' => 'Bibles for America', 'link' => 'http://www.biblesforamerica.org/', 'type_id' => 14]);
     Link::create(['name' => 'Living to Him', 'link' => 'http://www.livingtohim.com/', 'type_id' => 14]);
     Link::create(['name' => 'Read His Word', 'link' => 'http://www.readhisword.com/', 'type_id' => 14]);
     Link::create(['name' => 'Gospelize, Truthize, Churchize America', 'link' => 'http://www.gtca.us/', 'type_id' => 14]);
     Link::create(['name' => 'We Migrate', 'link' => 'http://www.wemigrate.org/', 'type_id' => 14]);
     Link::create(['name' => 'Contending for the Faith', 'link' => 'http://www.contendingforthefaith.com/', 'type_id' => 14]);
     Link::create(['name' => 'Amana Christian Bookstore', 'link' => 'http://www.amanabooks.co.uk/', 'type_id' => 14]);
     Link::create(['name' => 'Watchman Nee', 'link' => 'http://www.watchmannee.org/', 'type_id' => 14]);
     Link::create(['name' => 'Witness Lee', 'link' => 'http://www.witnesslee.org/', 'type_id' => 14]);
     Link::create(['name' => 'Witness Lee & Watchman Nee Hymns', 'link' => 'http://www.witness-lee-hymns.org/', 'type_id' => 14]);
     Link::create(['name' => 'Recovery Version Bible', 'link' => 'http://www.recoveryversion.org/', 'type_id' => 14]);
     Link::create(['name' => 'The Triune God', 'link' => 'http://www.triunegod.org/', 'type_id' => 14]);
     Link::create(['name' => 'God\'s Economy', 'link' => 'http://www.godseconomy.org/', 'type_id' => 14]);
     Link::create(['name' => 'All-Inclusive Christ', 'link' => 'http://www.allinclusivechrist.org/index.html', 'type_id' => 14]);
 }