huruf pertama huruf besar
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");