示例#1
0
 /**
  * Register the form builder instance.
  *
  * @return void
  */
 protected function registerFormBuilder()
 {
     $this->app->singleton('form', function (Application $app) {
         $form = new FormBuilder($app->make('html'), $app->make('url'));
         return $form->setSessionStore($app->make('session.store'));
     });
 }
 /**
  * Textarea template.
  *
  * @param  \Orchestra\Contracts\Html\Form\Field $field
  *
  * @return string
  */
 public function textarea(FieldContract $field)
 {
     $attributes = $this->html->decorate($field->get('attributes'), ['class' => 'form-control']);
     return $this->form->textarea($field->get('name'), $field->get('value'), $attributes);
 }