Files
chatroom/app/Models/IpLock.php

42 lines
657 B
PHP
Raw Normal View History

<?php
/**
* 文件功能IP 封禁模型
*
* 对应原 ASP 文件ip_lock
*
* @author ChatRoom Laravel
*
* @version 1.0.0
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class IpLock extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'ip',
'end_time',
'act_level',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'end_time' => 'datetime',
];
}
}