LaravelBook\Laravel4Powerpack\Form::label PHP Method

label() public method

Create a HTML label element.
public label ( string $name, string $value, array $attributes = [] ) : string
$name string
$value string
$attributes array
return string
    public function label($name, $value, $attributes = array())
    {
        $this->labels[] = $name;
        $attributes = $this->html->attributes($attributes);
        $value = $this->html->entities($value);
        return '<label for="' . $name . '"' . $attributes . '>' . $value . '</label>';
    }