1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-21 11:18:10 +08:00
2020-03-16 15:33:36 +08:00

50 lines
613 B
PHP

<?php
namespace App\Models;
use App\Caches\Config as ConfigCache;
class Config extends Model
{
/**
* 主键
*
* @var int
*/
public $id;
/**
* 配置块
*
* @var string
*/
public $section;
/**
* 配置键
*
* @var string
*/
public $item_key;
/**
* 配置值
*
* @var string
*/
public $item_value;
public function getSource()
{
return 'kg_config';
}
public function afterUpdate()
{
$configCache = new ConfigCache();
$configCache->rebuild();
}
}