compiled.php 行 6341 中的 BadMethodCallException:之后的方法不存在

BadMethodCallException in compiled.php line 6341: Method after does not exist

我正在尝试将我的站点部署到暂存域。我已经正确地完成了所有操作(据我所知)但是当我从浏览器访问我的域时出现此错误。

BadMethodCallException in compiled.php line 6341:

后面的方法不存在。

在路由器的 compiled.php 行 6341->__call('after', compiled.php 行 2265 中的数组(对象(AfterFilter))) compiled.php 行 2265 中的 Router->after(object(AfterFilter)) compiled.php 行 2265 中的 Application->boot() compiled.php 行中的 BootProviders->bootstrap(object(Application)) 1693 年 应用->bootstrapWith(数组('Illuminate\Foundation\Bootstrap\DetectEnvironment', 'Illuminate\Foundation\Bootstrap\LoadConfiguration', 'Illuminate\Foundation\Bootstrap\ConfigureLogging', 'Illuminate\Foundation\Bootstrap\HandleExceptions', 'Illuminate\Foundation\Bootstrap\RegisterFacades', 'Illuminate\Foundation\Bootstrap\RegisterProviders', 'Illuminate\Foundation\Bootstrap\BootProviders')) 在 compiled.php 行 2465 at Kernel->bootstrap() in compiled.php line 2415 at compiled.php 行中的内核->sendRequestThroughRouter(object(Request)) 2400 at Kernel->handle(object(Request)) in index.php line 54

这是我的 .env 文件

APP_ENV=staging
APP_DEBUG=true
APP_KEY=key

DB_HOST=localhost
DB_DATABASE=db_name
DB_USERNAME=username
DB_PASSWORD=password

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

在我的本地环境中,它工作正常,所以它可能不是我的代码的问题。是否缺少某些配置设置?我以前用同样的方法部署过站点,但我从未遇到过这个问题。唯一的区别是这个站点使用域路由。

问题出在 newrelic 代理上。所以我从我的登台服务器上卸载了它。这是一个临时解决方案,因为我在生产中需要代理。更多相关信息:Laracasts Forum