Collective\Html\FormBuilder::__construct PHP Method

__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
    public function __construct(HtmlBuilder $html, UrlGenerator $url, Factory $view, $csrfToken)
    {
        $this->url = $url;
        $this->html = $html;
        $this->view = $view;
        $this->csrfToken = $csrfToken;
    }

Usage Example

 /**
  *  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());
 }
All Usage Examples Of Collective\Html\FormBuilder::__construct