/**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->registerResources();
     if (!isset($this->app['html'])) {
         $this->app->bindShared('html', function ($app) {
             return new \Collective\Html\HtmlBuilder($app['url']);
         });
     }
     $this->app->bindShared('laravalid', function ($app) {
         $plugin = \Config::get('laravalid.plugin');
         $converterClassName = 'LaravelArdent\\Laravalid\\Converter\\' . $plugin . '\\Converter';
         $converter = new $converterClassName();
         $form = new FormBuilder($app->make('html'), $app->make('url'), $app->make('session.store')->getToken(), $converter);
         return $form->setSessionStore($app->make('session.store'));
     });
 }
 public function textarea($name, $value = null, $options = [])
 {
     $options['class'] = isset($options['class']) ? $options['class'] . ' form-control' : 'form-control';
     return parent::textarea($name, $value, $options);
 }