Laravel String Helper Function: upper
The upper method in PHP's Laravel Framework is used to convert a given value to uppercase. It is the opposite of the lower method and can be used for string comparisons. By using Str::upper('all upper cased'), the string "all upper cased" will be converted to "ALL UPPER CASED".