private function setFormFieldLabel($name, $options)
    {
        if (isset($options['label']) && $options['label'] != false) {
            $label = isset($options['label']) ? $options['label'] : $this->formatFieldLabel($name);

            return FormFacade::label($name, $label, ['class' => 'form-label']).'&nbsp;';
        } elseif (!isset($options['label'])) {
            return FormFacade::label($name, $this->formatFieldLabel($name), ['class' => 'form-label']).'&nbsp;';
        }
    }
private function setFormFieldLabel($name, $options)
    {
        if (isset($options['label']) && $options['label'] != false) {
            $label = isset($options['label']) ? $options['label'] : $this->formatFieldLabel($name);

            return FormFacade::label($name, $label, ['class' => 'form-label']).'&nbsp;';
        } elseif (!isset($options['label'])) {
            return FormFacade::label($name, $this->formatFieldLabel($name), ['class' => 'form-label']).'&nbsp;';
        }
    }
private function setFormFieldLabel ( $ name , $ options ) { if ( isset ( $ options [ 'label' ] ) && $ options [ 'label' ] != false ) { $ label = isset ( $ options [ 'label' ] ) ? $ options [ 'label' ] : $ this -> formatFieldLabel ( $ name ) ; return FormFacade :: label ( $ name , $ label , [ 'class' => 'form-label' ] ) . '&nbsp;' ; } elseif ( ! isset ( $ options [ 'label' ] ) ) { return FormFacade :: label ( $ name , $ this -> formatFieldLabel ( $ name ) , [ 'class' => 'form-label' ] ) . '&nbsp;' ; } }
Set the form field label.

@param  string  $name  The field name.
@param  array  $options  The field attributes.
@return string  Generated form field label.
Set the form field label .