通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
## 路由新特性 5.1提供了更加对象化的路由定义,路由的参数在新版本中支持方法调用,例如: ~~~ Route::get('hello/:name','index/hello') ->ext('html') ->after(function(){ echo 'after'; }); ~~~ 等效于 ~~~ Route::get('hello/:name','index/hello',[ 'ext' => 'html', 'after' => function(){ echo 'after'; } ]); ~~~ 路由分组定义同样支持 ~~~ Route::group('blog',function(){ Route::get(':id','blog/read'); })->ext('html'); ~~~ 路由参数增加`cross_domain`或者使用`crossDomain`方法,表示该路由规则(或者路由分组)跨域名有效。 `domain`方法支持同时对多个域名设置相同的路由规则 ~~~ Route::domain(['blog','admin'],function(){ Route::rule('hello/:name','index/hello'); }); ~~~