laravel添加路由涉及到的文件

假设增加一个game的路由,
1.在router里增加game.php
2.在RouteServiceProvider中增加映射
3.在Middleware中增加game.php中间件,可直接复制api.php
4.在Kernel.php中注册中间件。

大功告成。 只是列出了步骤。

猜你喜欢

转载自blog.csdn.net/helloworld_dream/article/details/88696017