src/FormBuilder.php
public function label($name, $value = null, array $attributes = [], $escaped = true)
    {
        $this->labels[] = $name;

        $value = $value ?: Str::title(str_replace(['_', '-'], ' ', $name));

        return Label::make()
            ->for($name)
            ->attributes($attributes)
            ->html($escaped ? e($value) : $value);
    }
public function label($name, $value = null, array $attributes = [], $escaped = true)
    {
        $this->labels[] = $name;

        $value = $value ?: Str::title(str_replace(['_', '-'], ' ', $name));

        return Label::make()
            ->for($name)
            ->attributes($attributes)
            ->html($escaped ? e($value) : $value);
    }
Create a form label element.

@param  string        $name
@param  string|mixed  $value
@param  array         $attributes
@param  bool          $escaped

@return \Arcanedev\Html\Elements\Label