You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Not in group
if (!$this->currentGroupPrefix) {
return;
}
middleware,use 在路由中都不生效
只有在group里的单个路由才生效
// Prepend group middleware at before.
if ($this->currentGroupChains) {
$route->setChains(array_merge($this->currentGroupChains, $route->getChains()));
}
数组合并是不是用问题,不知道设计是几维数组,middleware 都是一维数组嘛??
Route::use(['api'])->group('/api', function () {
Route::get('/test', \app\controller\IndexController::class . '@index')->middleware(['api1']);
},['api2','api3']);
middleware,use 在路由中都不生效
只有在group里的单个路由才生效
数组合并是不是用问题,不知道设计是几维数组,middleware 都是一维数组嘛??
dump 的middleware $router->getChains()
The text was updated successfully, but these errors were encountered: