Translate.php 650 字节
<?php
/**
 * @remark :
 * @name   :Translate.php
 * @author :lyh
 * @method :post
 * @time   :2024/1/12 9:38
 */

namespace App\Models\WebSetting;

use App\Models\Base;

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

    public static $textType = 1;
    public static $imageType = 2;


    /**
     * 校对详情数据
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     * @author Akun
     * @date 2024/06/14 14:54
     */
    public function translate_data()
    {
        return self::hasOne(TranslateData::class, 'trans_id', 'id');
    }
}