App\Services\Html\BlenderFormBuilder::text PHP Method

text() public method

public text ( string $name, boolean $required = false, string $locale = '' ) : string
$name string
$required boolean
$locale string
return string
    public function text(string $name, bool $required = false, string $locale = '') : string
    {
        $fieldName = $this->fieldName($name, $locale);
        return $this->group([$this->label($name, $required), Form::text($fieldName, Form::useInitialValue($this->model, $name, $locale)), $this->error($fieldName, $this->errors)]);
    }