lodash upperfirst code example
Example 1: laravel uppercase first letter
use Illuminate\Support\Str;
...
$string = Str::ucfirst('foo bar');
Example 2: awk first upper
echo example | awk '{$1=toupper(substr($1,0,1))substr($1,2)}1'
Example #Example first upppercased outputed