laravel php convert first character to upper case code example
Example 1: first character uppercase php
ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world
Example 2: laravel uppercase first letter
use Illuminate\Support\Str;
...
$string = Str::ucfirst('foo bar');