2022-06-28 434次浏览

Router and its fastroute adapter were tagged. This version adds support for multiple hosts via Route::hosts() and Group::hosts() :

Route::get('/')
    ->hosts(
        'https://yiiframework.com/',
        'https://yiiframework.ru/'
    );

Group::create()
    ->hosts(
        'https://yiiframework.com/',
        'https://yiiframework.ru/'
    );