Первая буква в верхней букве Laravel
use Illuminate\Support\Str;
...
$string = Str::ucfirst('foo bar');
Xfantasia
use Illuminate\Support\Str;
...
$string = Str::ucfirst('foo bar');
public function getProvince($value)
{
return strtoupper($value);
}
$string = ucfirst("my name is doe");