Open ghost opened 9 years ago
To keep supporting Laravel 4 though it can't be added as a dependency.
The docs should be updated though to mention it!
then add new branch and tag for laravel 5 development (maybe I can help)
+1 It doesn't work in 5.2
@dlnsk if you include the LaravelCollective package, does it work?
No. Even if I correct errors with extents, change bindShared() to singleton() it rises an error:
ErrorException in FormBuilder.php line 35: Argument 3 passed to Collective\Html\FormBuilder::__construct() must implement interface Illuminate\Contracts\View\Factory, string given, called in /vendor/manavo/laravel-bootstrap-forms/src/Manavo/BootstrapForms/BootstrapFormsServiceProvider.php on line 38 and defined (View: /resources/views/claim/edit.blade.php)
Catch it!
Should change to
$form = new FormBuilder($app['html'], $app['url'], $app['view']);
in BootstrapFormsServiceProvider.php
Now there isn't errors, but label of group passed througth htmlentities so displays as code.
I've placed output of openGroup and closeGroup into $this->toHtmlString() and now it works fine.
But this package doesn't support .form-horizontal
style of form.
in laravel 5 the form and html components extracted to LaravelCollective package . you need to use it as dependancy and make the formBuilder class extends it FormBuilder .