laravel capitalize first letter translation code example
Example 1: laravel uppercase first letter
use Illuminate\Support\Str;
...
$string = Str::ucfirst('foo bar');
Example 2: blade capitalize first letter
$string = ucfirst("my name is doe");