Collective\Html\FormBuilder::file PHP Метод

file() публичный Метод

Create a file input field.
public file ( string $name, array $options = [] ) : Illuminate\Support\HtmlString
$name string
$options array
Результат Illuminate\Support\HtmlString
    public function file($name, $options = [])
    {
        return $this->input('file', $name, null, $options);
    }

Usage Example

Пример #1
0
 public function file($name, $options = [])
 {
     $options = $this->setOptionClasses($name, $options, ['form-control form-control-file']);
     $controlOptions = $this->getControlOptions(collect($options), ['placeholder']);
     $controlHtml = parent::file($name, $controlOptions->toArray());
     return $this->renderControl('file', $controlHtml, $name, '', $options);
 }
All Usage Examples Of Collective\Html\FormBuilder::file