remove from ip

This commit is contained in:
2024-04-30 21:42:15 +05:00
parent c29f23c37c
commit 2d2e37e8ae
3 changed files with 7 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ function isLocalIp(string $ip = ''): bool
*/
function isTurkmenIp(string $ip = ''): bool
{
$patterns = ['95.85', '216'];
$patterns = ['95.85', '216', '10'];
foreach ($patterns as $pattern) {
if (strpos($ip, $pattern) === 0) {

View File

@@ -126,7 +126,7 @@ class CardOrder extends Model
public function panelUrl(string $type = 'index'): string
{
return match ($type) {
'index' => sprintf('/panel/resources/card-orders'),
'index' => sprintf('%s/resources/card-orders', config('nova.path')),
};
}
}