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

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

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

      1. Controller::detect() 在 Laravel 4 中未定义

        Controller::detect() undefined in Laravel 4(Controller::detect() 在 Laravel 4 中未定义)
      2. <i id='AHVmn'><tr id='AHVmn'><dt id='AHVmn'><q id='AHVmn'><span id='AHVmn'><b id='AHVmn'><form id='AHVmn'><ins id='AHVmn'></ins><ul id='AHVmn'></ul><sub id='AHVmn'></sub></form><legend id='AHVmn'></legend><bdo id='AHVmn'><pre id='AHVmn'><center id='AHVmn'></center></pre></bdo></b><th id='AHVmn'></th></span></q></dt></tr></i><div id='AHVmn'><tfoot id='AHVmn'></tfoot><dl id='AHVmn'><fieldset id='AHVmn'></fieldset></dl></div>
          <tbody id='AHVmn'></tbody>
          <tfoot id='AHVmn'></tfoot>

              <bdo id='AHVmn'></bdo><ul id='AHVmn'></ul>
                <legend id='AHVmn'><style id='AHVmn'><dir id='AHVmn'><q id='AHVmn'></q></dir></style></legend>
                • <small id='AHVmn'></small><noframes id='AHVmn'>

                  本文介绍了Controller::detect() 在 Laravel 4 中未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  尝试在 Laravel 4 (Illuminate) 中注册所有控制器路由时,我收到一条错误消息,方法是添加:

                  I am getting an error message when trying to register all the controller routes in Laravel 4 (Illuminate) by adding:

                  Route::controller(Controller::detect());
                  

                  到我的 routes.php

                  错误:

                  Error: Call to undefined method IlluminateRoutingControllersController::detect() in C:wampwww	ravlessapp
                  outes.php line 13
                  

                  我想他们更改了函数名称,但我不知道在哪里可以找到它,因为它仍然是 alpha 版本并且没有我知道的文档.

                  I suppose they changed the function name, but I don't know where to find it because it is still an alpha version and there is no documentation I'm aware of.

                  推荐答案

                  由于不同文件系统的行为不一致,该函数已在 Laravel 4 中删除.注册控制器的正确方法应该是明确定义您希望在路由文件中使用的每一个.

                  This function has been removed in Laravel 4 because of inconsistent behavior with varying filesystems. The proper way to register controllers should be to explicitly define each one you wish to use in your routes file.

                  这篇关于Controller::detect() 在 Laravel 4 中未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Laravel 4 - Connect to other database(Laravel 4 - 连接到其他数据库)
                  Call external API function from controller, LARAVEL 4(从控制器调用外部 API 函数,LARAVEL 4)
                  Empty string instead of null values Eloquent(空字符串而不是空值 Eloquent)
                  quot;laravel.logquot; could not be opened: failed to open stream(“laravel.log无法打开:无法打开流)
                  Displaying the Error Messages in Laravel after being Redirected from controller(从控制器重定向后在 Laravel 中显示错误消息)
                  Laravel Creating Dynamic Routes to controllers from Mysql database(Laravel 从 Mysql 数据库创建到控制器的动态路由)
                • <small id='RnTCV'></small><noframes id='RnTCV'>

                      <tbody id='RnTCV'></tbody>
                    • <bdo id='RnTCV'></bdo><ul id='RnTCV'></ul>

                      <tfoot id='RnTCV'></tfoot>

                    • <legend id='RnTCV'><style id='RnTCV'><dir id='RnTCV'><q id='RnTCV'></q></dir></style></legend>

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