CustomModuleContent.php 470 字节
<?php
/**
 * @remark :
 * @name   :CustomModuleContent.php
 * @author :lyh
 * @method :post
 * @time   :2023/11/6 10:04
 */

namespace App\Models\CustomModule;

use App\Helper\Arr;
use App\Models\Base;

class CustomModuleContent extends Base
{
    protected $table = 'gl_custom_module_content';
    //连接数据库
    protected $connection = 'custom_mysql';

    public function getCategoryIdAttribute($value){
        return Arr::setToArr(trim($value,','));
    }
}