Add (post manage)

Add (post country viewing)
This commit is contained in:
2023-07-28 02:29:11 +08:00
parent e70195f4f7
commit ded1643e5f
49 changed files with 4484 additions and 3844 deletions

View File

@@ -46,18 +46,16 @@ function get_country_name_by_iso($country_iso)
$country_iso = strtoupper($country_iso);
try {
return config("platform.country_codes.{$country_iso}")['name'];
return config("platform.country_codes.{$country_iso}")['name'];
} catch (\Exception $e) {
}
catch (\Exception $e) {}
}
return 'International';
}
}
if (! function_exists('get_country_emoji_by_iso')) {
function get_country_emoji_by_iso($country_iso)
{
@@ -66,11 +64,10 @@ function get_country_emoji_by_iso($country_iso)
$country_iso = strtoupper($country_iso);
try {
return config("platform.country_codes.{$country_iso}")['emoji'];
return config("platform.country_codes.{$country_iso}")['emoji'];
} catch (\Exception $e) {
}
catch (\Exception $e) {}
}
return '🌎';
@@ -82,4 +79,4 @@ function str_random($length = 10)
{
return Str::random($length);
}
}
}