You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
391 B
PHTML
25 lines
391 B
PHTML
|
10 years ago
|
<?php
|
||
|
|
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use App\Utils\Tools;
|
||
|
|
|
||
|
|
class BlockIp extends Model
|
||
|
|
{
|
||
|
|
protected $connection = "default";
|
||
|
|
protected $table = "blockip";
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
public function node()
|
||
|
|
{
|
||
|
|
return Node::where("id", $this->attributes['nodeid'])->first();
|
||
|
|
}
|
||
|
|
|
||
|
|
public function time()
|
||
|
|
{
|
||
|
|
return date("Y-m-d H:i:s", $this->attributes['datetime']);
|
||
|
|
}
|
||
|
|
}
|