Laravel String Helper Function: upper

November 16, 2016 —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');

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.