By John Koster
The upper method is the opposite of the lower method and it takes a given value and returns the upper case variant. This method is useful when doing string comparisons.
The signature for the upper helper method is:
upper($value)
1use Illuminate\Support\Str;
2
3// ALL UPPER CASED
4echo Str::upper('all upper cased');
∎