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

Parameters

null|string $key
bool $check_key

Return Value

array|string

at line 67
static bool ipIsAllow(string $ip)

ip是否允许登录

Parameters

string $ip ip

Return Value

bool

at line 85
static bool deviceIsAllow(string $device)

是否允许该设备登录

Parameters

string $device device

Return Value

bool

at line 100
static bool loginIsAllow(string|null $ip = null, string|null $device = null)

登录是否允许

Parameters

string|null $ip ip
string|null $device 设备

Return Value

bool

at line 117
static string banDeviceIsOpen(string $type)

设备 KEY

Parameters

string $type

Return Value

string

at line 26
static PamBan newModelQuery()

No description

Return Value

PamBan

at line 26
static PamBan newQuery()

No description

Return Value

PamBan

at line 26
static PamBan query()

No description

Return Value

PamBan