如题在路由中使用了domain的时候报出如下的错误
路由
Route::group(['domain' => '{account}.juda.dev'], function () {
Route::get('user/{id}', function ($account, $id) {
dd($id);
});
});
域名配置
<VirtualHost *:80>
DocumentRoot "F:\WWW\juda\public"
ServerName juda.dev
</VirtualHost>
<Directory "F:\WWW\juda\public">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
开发环境
php 版本5.6.27和7.1.7
laravel版本5.4.30
apache2.4
windows系统 win8.1