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.
Malio/app/Models/BlockIp.php

22 lines
356 B
PHTML

9 years ago
<?php
namespace App\Models;
class BlockIp extends Model
{
protected $connection = 'default';
protected $table = 'blockip';
9 years ago
8 years ago
9 years ago
public function node()
{
return Node::where('id', $this->attributes['nodeid'])->first();
9 years ago
}
8 years ago
9 years ago
public function time()
{
return date('Y-m-d H:i:s', $this->attributes['datetime']);
9 years ago
}
}