DeployBuild.php 692 字节
<?php

namespace App\Models\Project;

use App\Helper\Arr;
use App\Models\Base;
use Hashids\Hashids;
use Illuminate\Support\Facades\Cache;

class DeployBuild extends Base
{
    //设置关联表名
    protected $table = 'gl_project_deploy_build';


 	public static function clearCache($row){
        $cache_key = 'project_' . $row->original['test_domain'];
        Cache::forget($cache_key);
    }

    /**
     * @remark :扩展字段获取器
     * @name   :getConfigurationAttribute
     * @author :lyh
     * @method :post
     * @time   :2023/9/6 9:44
     */
    public function getConfigurationAttribute($value)
    {
        $value = Arr::s2a($value);
        return $value;
    }
}