PamBan
class PamBan extends Model mixin Eloquent
User\Models\PamBin
Constants
WB_TYPE_BLACK |
|
WB_TYPE_WHITE |
|
TYPE_IP |
|
TYPE_DEVICE |
|
Properties
protected | $table | ||
protected | $fillable | ||
int | $id | ||
string | $type | 类型 | |
string | $account_type | 账号类型 | |
string | $value | 值 | |
Carbon|null | $created_at | ||
Carbon|null | $updated_at |
Methods
static array|string
kvType(null|string $key = null, bool $check_key = false)
No description
static bool
ipIsAllow(string $ip)
ip是否允许登录
static bool
deviceIsAllow(string $device)
是否允许该设备登录
static bool
loginIsAllow(string|null $ip = null, string|null $device = null)
登录是否允许
static string
banDeviceIsOpen(string $type)
设备 KEY
static PamBan
newModelQuery()
No description
static PamBan
newQuery()
No description
static PamBan
query()
No description
Details
at line 52
static array|string
kvType(null|string $key = null, bool $check_key = false)
No description
at line 67
static bool
ipIsAllow(string $ip)
ip是否允许登录
at line 85
static bool
deviceIsAllow(string $device)
是否允许该设备登录
at line 100
static bool
loginIsAllow(string|null $ip = null, string|null $device = null)
登录是否允许
at line 117
static string
banDeviceIsOpen(string $type)
设备 KEY
at line 26
static PamBan
newModelQuery()
No description
at line 26
static PamBan
newQuery()
No description
at line 26
static PamBan
query()
No description