install
This commit is contained in:
19
app/Modules/IpStack/ip-stack-helpers.php
Normal file
19
app/Modules/IpStack/ip-stack-helpers.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use App\Modules\IpStack\Repositories\IpStackRepository;
|
||||
|
||||
/**
|
||||
* Check if a client IP is in our Server subnet
|
||||
*/
|
||||
function isLocalIp(string $ip = ''): bool
|
||||
{
|
||||
return IpStackRepository::isLocalIp($ip);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get country code from ip
|
||||
*/
|
||||
function getCountryCodeFromIp(?string $ip = ''): string
|
||||
{
|
||||
return IpStackRepository::getCountryCodeFromIp($ip);
|
||||
}
|
||||
Reference in New Issue
Block a user