lijinma / laravel-scout-elastic-demo

笑来搜原型 Laravel Scout & ElasticSearch ik

Home Page:http://scout.lijinma.com/search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

点击“搜索”按钮之后,显示页面Not Found

hxhac opened this issue · comments

commented

Demo里的路由是这样的...

`Route::get('/', function () {
    return redirect('/search');
});

Route::get('/search', [
    'uses' => 'PostController@search'
]);`

无法打开“首页”,点击“搜索”之后,也会报“Not Found”;

`Route::get('/', 'PostController@search');

Route::get('/search', 'PostController@search');`

我改成这样了,可以展示“首页”了,但是点击之后,还是会报
“The requested URL /search was not found on this server.”

求助