src/FormBuilder.php
public function label(string $name, ?string $value = null, array $options = []): Htmlable
    {
        $this->labels[] = $name;

        $options = $this->html->attributes($options);

        $value = $this->entities($this->formatLabel($name, $value));

        return $this->toHtmlString('<label for="'.$name.'"'.$options.'>'.$value.'</label>');
    }
public function label(string $name, ?string $value = null, array $options = []): Htmlable
    {
        $this->labels[] = $name;

        $options = $this->html->attributes($options);

        $value = $this->entities($this->formatLabel($name, $value));

        return $this->toHtmlString('<label for="'.$name.'"'.$options.'>'.$value.'</label>');
    }
Create a form label element.

@param  string  $name
@param  string  $value
@param  array   $options

@return \Illuminate\Contracts\Support\Htmlable