LaravelBook\Laravel4Powerpack\Form::textarea PHP Method

textarea() public method

Create a HTML textarea element.
public textarea ( string $name, string $value = '', array $attributes = [] ) : string
$name string
$value string
$attributes array
return string
    public function textarea($name, $value = '', $attributes = array())
    {
        $attributes['name'] = $name;
        $attributes['id'] = $this->id($name, $attributes);
        if (!isset($attributes['rows'])) {
            $attributes['rows'] = 10;
        }
        if (!isset($attributes['cols'])) {
            $attributes['cols'] = 50;
        }
        return '<textarea' . $this->html->attributes($attributes) . '>' . $this->html->entities($value) . '</textarea>';
    }