我正在使用以下文档将laravel 4.2升级到5.0:
http://laravel.com/docs/master/upgrade#upgrade-5.0
我完成了以下几点:Controllers
,Route Filters
比之后 以下错误来了:
in Container.php line 776
at ReflectionClass->__construct('HomeController') in Container.php line 776
at Container->build('HomeController', array()) in Container.php line 656
at Container->make('HomeController', array()) in Application.php line 572
at Application->make('HomeController') in ControllerDispatcher.php line 83
at ControllerDispatcher->makeController('HomeController') in ControllerDispatcher.php line 54
at ControllerDispatcher->dispatch(object(Route), object(Request), 'HomeController', 'showLogin') in Route.php line 198
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 131
at Route->run(object(Request)) in Router.php line 689
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Router.php line 690
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 660
at Router->dispatchToRoute(object(Request)) in Router.php line 618
at Router->dispatch(object(Request)) in Kernel.php line 160
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 111
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 53
答案 0 :(得分:0)
完成升级。稍后在文档中,您可以找到:
Form& HTML助手
如果您正在使用表单或HTML帮助程序,则会看到错误说明 课程'表格'没找到或上课' Html'未找到。要解决此问题,请添加 "照亮/ html":" ~5.0"到您的composer.json文件的要求 部分。
您还需要添加表单和HTML外观和服务 供应商。编辑config / app.php,并将此行添加到'提供商' 阵列:
' Illuminate \ Html \ HtmlServiceProvider',接下来,将这些行添加到 '别名'阵列:
'表' => ' Illuminate \ Html \ FormFacade',' Html' => '照亮\ HTML \ HtmlFacade',