protected function getLabel(): string
    {
        if ($this->label != null) {
            return $this->label;
        }

        if (isset($this->model->attributeLabels()[$this->name])) {
            return $this->model->attributeLabels()[$this->name];
        }

        return ucfirst($this->name);
    }
protected function getLabel(): string
    {
        if ($this->label != null) {
            return $this->label;
        }

        if (isset($this->model->attributeLabels()[$this->name])) {
            return $this->model->attributeLabels()[$this->name];
        }

        return ucfirst($this->name);
    }
protected function getLabel ( ) : string { if ( $ this -> label != null ) { return $ this -> label ; } if ( isset ( $ this -> model -> attributeLabels ( ) [ $ this -> name ] ) ) { return $ this -> model -> attributeLabels ( ) [ $ this -> name ] ; } return ucfirst ( $ this -> name ) ; }
Returns the label of the field.

@return string
Returns the label of the field .