Первая буква в верхней букве Laravel
use Illuminate\Support\Str;
...
$string = Str::ucfirst('foo bar');
Xfantasia
use Illuminate\Support\Str;
...
$string = Str::ucfirst('foo bar');