Open Ajtak opened 7 years ago
Hi, Im use this library where your manual, but it generate error. Controller:
public function create(FormBuilder $formBuilder) { $form = $formBuilder->createByArray([ [ 'name' => 'name', 'type' => 'text', ], [ 'name' => 'lyrics', 'type' => 'textarea', ], [ 'name' => 'publish', 'type' => 'checkbox' ], ] ,[ 'method' => 'POST', 'url' => route('song.store') ]); return view('song.create', compact('form')); }
and songs/create.blade.php implementation:
{!! form($form) !!}
This implementation generate View [] not found error.
what is bad? How to fix it?
@Ajtak you probably haven't add the Kris\LaravelFormBuilder\FormBuilderServiceProvider::class to app/config.php providers
Kris\LaravelFormBuilder\FormBuilderServiceProvider::class
app/config.php
Hi, Im use this library where your manual, but it generate error. Controller:
and songs/create.blade.php implementation:
{!! form($form) !!}
This implementation generate View [] not found error.
what is bad? How to fix it?