set string as capitalize laravel code example Example: string to uppercase laravel public function getProvince($value) { return strtoupper($value); }