__construct() public method

Create a new form builder instance.
public __construct ( HtmlBuilder $html, Illuminate\Contracts\Routing\UrlGenerator $url, Illuminate\Contracts\View\Factory $view, string $csrfToken )
$html HtmlBuilder
$url Illuminate\Contracts\Routing\UrlGenerator
$view Illuminate\Contracts\View\Factory
$csrfToken string
 /**
  *  Create an instance of Mention builder and also call Form Builder's constructor
  * @param HtmlBuilder $html [description]
  * @param UrlGenerator $url [description]
  * @param ViewFactory $view [description]
  */
 public function __construct(HtmlBuilder $html, UrlGenerator $url, ViewFactory $view)
 {
     parent::__construct($html, $url, $view, csrf_token());
 }
 /**
  * @param HtmlBuilder $html
  * @param UrlGenerator $url
  * @param string $csrfToken
  * @param ViewErrorBag $errors
  */
 public function __construct(HtmlBuilder $html, UrlGenerator $url, $csrfToken, ViewErrorBag $errors)
 {
     parent::__construct($html, $url, $csrfToken);
     $this->errors = $errors;
 }
Ejemplo n.º 3
0
 public function __construct(HtmlBuilder $html, UrlGenerator $url, $csrfToken, Converter $converter)
 {
     parent::__construct($html, $url, $csrfToken);
     $plugin = \Config::get('laravalid.plugin');
     $this->converter = $converter;
 }
Ejemplo n.º 4
0
 public function __construct(\Collective\Html\HtmlBuilder $html, \Illuminate\Routing\UrlGenerator $url, $csrfToken, Converter\Base\Converter $converter, \Illuminate\Contracts\View\Factory $view)
 {
     parent::__construct($html, $url, $view, $csrfToken);
     $plugin = \Config::get('laravalid.plugin');
     $this->converter = $converter;
 }
Ejemplo n.º 5
0
 /**
  * Create a new form builder instance.
  * if config/app.php set right, will use PkHtmlBuilder to build $html
  * @param  \Illuminate\Routing\UrlGenerator  $url
  * @param  \Illuminate\Html\HtmlBuilder  $html
  * @param  string  $csrfToken
  * @return void
  */
 public function __construct(PkHtmlBuilder $pkhtml, UrlGenerator $url, Factory $view, $csrfToken)
 {
     parent::__construct($pkhtml, $url, $view, $csrfToken);
 }
Ejemplo n.º 6
0
 /**
  * Create new instance of this FormBuilder intercepter!
  *
  * @param  \Collective\Html\HtmlBuilder               $html
  * @param  \Illuminate\Contracts\Routing\UrlGenerator $url
  * @param  \Illuminate\Contracts\View\Factory         $view
  * @param  string                                     $token
  * @param  Illuminate\Translation\Translator $translator
  * @param  mixed                             $errors
  *
  * @return void
  */
 public function __construct($html, $url, $view, $token, $translator, $errors = null)
 {
     $this->local_errors = $errors != null ? $errors : new MessageBag();
     parent::__construct($html, $url, $view, $token, $translator);
 }