<small id='CFh9l'></small><noframes id='CFh9l'>

    <legend id='CFh9l'><style id='CFh9l'><dir id='CFh9l'><q id='CFh9l'></q></dir></style></legend>
    <i id='CFh9l'><tr id='CFh9l'><dt id='CFh9l'><q id='CFh9l'><span id='CFh9l'><b id='CFh9l'><form id='CFh9l'><ins id='CFh9l'></ins><ul id='CFh9l'></ul><sub id='CFh9l'></sub></form><legend id='CFh9l'></legend><bdo id='CFh9l'><pre id='CFh9l'><center id='CFh9l'></center></pre></bdo></b><th id='CFh9l'></th></span></q></dt></tr></i><div id='CFh9l'><tfoot id='CFh9l'></tfoot><dl id='CFh9l'><fieldset id='CFh9l'></fieldset></dl></div>

        <tfoot id='CFh9l'></tfoot>

          <bdo id='CFh9l'></bdo><ul id='CFh9l'></ul>

        laravel 包中路由声明的顺序

        时间:2023-10-31
      1. <small id='SZpat'></small><noframes id='SZpat'>

        <legend id='SZpat'><style id='SZpat'><dir id='SZpat'><q id='SZpat'></q></dir></style></legend>

          <tbody id='SZpat'></tbody>

            <bdo id='SZpat'></bdo><ul id='SZpat'></ul>

            <tfoot id='SZpat'></tfoot>
            <i id='SZpat'><tr id='SZpat'><dt id='SZpat'><q id='SZpat'><span id='SZpat'><b id='SZpat'><form id='SZpat'><ins id='SZpat'></ins><ul id='SZpat'></ul><sub id='SZpat'></sub></form><legend id='SZpat'></legend><bdo id='SZpat'><pre id='SZpat'><center id='SZpat'></center></pre></bdo></b><th id='SZpat'></th></span></q></dt></tr></i><div id='SZpat'><tfoot id='SZpat'></tfoot><dl id='SZpat'><fieldset id='SZpat'></fieldset></dl></div>
                1. 本文介绍了laravel 包中路由声明的顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我制作了一个包含路由的 laravel 包,它是一个特殊的路由,可以捕获大量可能的 url.我不希望我的路由优先于主应用程序中声明的其他包或路由.如何确保我的路线是最后声明的路线?

                  I have made a laravel package which contains a route, it is a special route that catches a large number of possible urls. I don't want my route to take precedence over other packages or routes declared in the main application. How can I ensure that my route is the last route declared?

                  推荐答案

                  路由按照它们在 routes.php 中列出的顺序进行评估.只需确保这条路线是数组中的最后一条即可.

                  Routes are evaluated in the order that they are listed in routes.php. Simply making sure this route is the last one in the array should do it.

                  更新

                  我相信你可以在 App::before 过滤器中注册路由,它会在所有用户路由之后注册它.

                  I believe you could just register the route in the App::before filter, which would register it after all user routes.

                  这篇关于laravel 包中路由声明的顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:laravel 刀片 @include 不工作 下一篇:检查 belongsToMany 关系是否存在 - Laravel

                  相关文章

                  <legend id='ffIPi'><style id='ffIPi'><dir id='ffIPi'><q id='ffIPi'></q></dir></style></legend>
                    <bdo id='ffIPi'></bdo><ul id='ffIPi'></ul>

                2. <small id='ffIPi'></small><noframes id='ffIPi'>

                      <tfoot id='ffIPi'></tfoot>
                    1. <i id='ffIPi'><tr id='ffIPi'><dt id='ffIPi'><q id='ffIPi'><span id='ffIPi'><b id='ffIPi'><form id='ffIPi'><ins id='ffIPi'></ins><ul id='ffIPi'></ul><sub id='ffIPi'></sub></form><legend id='ffIPi'></legend><bdo id='ffIPi'><pre id='ffIPi'><center id='ffIPi'></center></pre></bdo></b><th id='ffIPi'></th></span></q></dt></tr></i><div id='ffIPi'><tfoot id='ffIPi'></tfoot><dl id='ffIPi'><fieldset id='ffIPi'></fieldset></dl></div>