Laravel 5.4 Argument 3传递给Collective必须实现接口Illuminate \ Contracts \ View \ Factory,给出字符串

时间:2017-11-07 07:29:32

标签: php laravel-5.4

我在Laravel 5.4上安装了Kris Form Builder: https://github.com/kristijanhusak/laravel-form-builder/

当我想在刀片中呈现表单时,我收到了这个错误:

Argument 3 passed to Collective\Html\FormBuilder::__construct() must implement interface Illuminate\Contracts\View\Factory, string given, called in /Applications/vendor/kris/laravel-form-builder/src/Kris/LaravelFormBuilder/FormBuilderServiceProvider.php on line 86 and defined (View: /Applications/resources/views/entity-items.blade.php)

更新 我自己解决了这个问题! 根据本教程:http://kristijanhusak.github.io/laravel-form-b​​uilder/overview/installation.html

您还应添加http://kristijanhusak.github.io/laravel-form-builder/overview/installation.html

'Former' => Former\Facades\Former::class, config \ app.php

0 个答案:

没有答案