protected function getLabelTitle($label, $name)
    {
        if ($label === false) {
            return null;
        }

        if (is_null($label) && Lang::has("forms.{$name}")) {
            return Lang::get("forms.{$name}");
        }

        return $label ?: str_replace('_', ' ', Str::title($name));
    }
protected function getLabelTitle($label, $name)
    {
        if ($label === false) {
            return null;
        }

        if (is_null($label) && Lang::has("forms.{$name}")) {
            return Lang::get("forms.{$name}");
        }

        return $label ?: str_replace('_', ' ', Str::title($name));
    }
protected function getLabelTitle ( $ label , $ name ) { if ( $ label === false ) { return null ; } if ( is_null ( $ label ) && Lang :: has ( "forms.{$name}" ) ) { return Lang :: get ( "forms.{$name}" ) ; } return $ label ? : str_replace ( '_' , ' ' , Str :: title ( $ name ) ) ; }
Get the label title for a form field, first by using the provided one
or titleizing the field name.

@param  string  $label
@param  string  $name
@return mixed
Get the label title for a form field first by using the provided one or titleizing the field name .