//}); Route::get('httpTest', function () { $client = new \GuzzleHttp\Client(['base_uri' => 'http://httpbin.org', 'timeout' => 2.0]); $response = $client->request('GET', 'get', ['query' => ['foo' => 'bar'], 'body' => 'Gavin']); echo $response->getBody(); }); Route::get('duoshuo', function () { $duoshuo = new \App\Services\DuoShuo(); echo $duoshuo->getHotArticles(); }); Route::get('redisTest', function () { $v = RedisGo::get('hello'); return $v; }); Route::get('orm', function () { $data = \App\Model\Article::skip(0)->take(10)->get(); dd($data); }); Route::get('table-edit', function () { Schema::table('articles', function ($table) { $table->string('outline'); }); }); /** * 前台部分 */ Route::group(['namespace' => 'Frontend'], function () { // 前台主页 文章列表 Route::get('/', 'FrontendController@index'); // 文章详细页 Route::get('article/{id}', 'FrontendController@article');