v2board/app/Models/Server.php

23 lines
508 B
PHP
Raw Normal View History

2019-10-29 15:33:36 +08:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Server extends Model
{
protected $table = 'v2_server';
protected $dateFormat = 'U';
2019-11-18 18:23:39 +08:00
protected $guarded = ['id'];
2021-08-01 22:56:11 +08:00
protected $casts = [
'created_at' => 'timestamp',
2021-08-06 00:43:01 +08:00
'updated_at' => 'timestamp',
'group_id' => 'array',
'tlsSettings' => 'array',
'networkSettings' => 'array',
'dnsSettings' => 'array',
'ruleSettings' => 'array',
2021-08-06 12:01:17 +08:00
'tags' => 'array'
2021-08-01 22:56:11 +08:00
];
2019-10-29 15:33:36 +08:00
}