LaravelBook\Laravel4Powerpack\Form::input PHP Метод

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

Create a HTML input element.
public input ( string $type, string $name, mixed $value = null, array $attributes = [] ) : string
$type string
$name string
$value mixed
$attributes array
Результат string
    public function input($type, $name, $value = null, $attributes = array())
    {
        $name = isset($attributes['name']) ? $attributes['name'] : $name;
        $id = $this->id($name, $attributes);
        $attributes = array_merge($attributes, compact('type', 'name', 'value', 'id'));
        return '<input' . $this->html->attributes($attributes) . ' />';
    }