我在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-builder/overview/installation.html
您还应添加http://kristijanhusak.github.io/laravel-form-builder/overview/installation.html
和'Former' => Former\Facades\Former::class,
在 config \ app.php