Laravel 路径出现双斜杠无法访问
url地址
http://laravel.cn/test/hello
路由设置
Route::group([ 'prefix' => 'test'], function ($route) {
$route->get('hello', 'EsSearch@index');
});
但是域名后台多加一个斜杠无法访问,会出现404 http://laravel.cn//test/hello
推荐文章: