“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
webman-路由-路由中间件
发布时间:2022-01-19 22:36:50作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
路由配置于config/route.php:给单个某个路由设置中间件,中间件可以有一个或多个实例: 路由配置: <?php /** * This file is part of webman. * * Licensed under The MIT L
阅读全文>>webman-路由-路由中间件 - 路由分组(嵌套分组)中使用路由中间件的注意事项
发布时间:2022-01-19 22:36:01作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
注意:->middleware() 路由中间件作用于 group 分组之后时候,当前路由必须在处于当前分组之下config/route.php中配置如:<?php/** * This file is part of webman. * * Licens
阅读全文>>webman-路由-路由接口-head请求
发布时间:2022-01-19 22:34:50作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
1
阅读全文>>webman-路由-路由分组
发布时间:2022-01-19 22:33:11作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
路由配置于config/route.php:有时候路由包含了大量相同的前缀,这时候我们可以用路由分组来简化定义。 实例:<?php/** * This file is part of webman. * * Licensed under Th
阅读全文>>webman-路由-路由分组 - group嵌套使用
发布时间:2022-01-19 22:32:05作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
路由配置于config/route.php:路由除了可以group分组,也可以支持再次嵌套实例:<?php/** * This file is part of webman. * * Licensed under The MIT License * For full cop
阅读全文>>