laravel uppercase first letter
snippet in php

laravel uppercase first letter

user5954

use Illuminate\Support\Str;

...

$string = Str::ucfirst('foo bar');