|
|
|
@ -12,6 +12,12 @@ class UserChannel extends BaseModel |
|
|
|
{ |
|
|
|
use HasFactory; |
|
|
|
|
|
|
|
public function __construct(array $attributes = []) |
|
|
|
{ |
|
|
|
parent::__construct($attributes); |
|
|
|
$this->timestamps = false; |
|
|
|
} |
|
|
|
|
|
|
|
// 获取时需要转换,写入时框架可自动将数组转换后保存
|
|
|
|
public function getChannelsAttribute($value) |
|
|
|
{ |
|
|
|
|