mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 15:10:54 +00:00
1. 框架更新至5.8,并且其涉及代码进行修改; 2. 对支付的alipay组件针对php7.2/3进行修改; 3. 重构了节点信息获取逻辑;现在为实时请求; 4. 代码小细节和命名规范
36 lines
896 B
PHP
36 lines
896 B
PHP
<?php
|
|
|
|
namespace App\Http\Models;
|
|
|
|
use Eloquent;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* 商品标签
|
|
* Class GoodsLabel
|
|
*
|
|
* @package App\Http\Models
|
|
* @mixin Eloquent
|
|
* @property int $id
|
|
* @property int $goods_id 商品ID
|
|
* @property int $label_id 标签ID
|
|
* @property-read Goods $goods
|
|
* @method static Builder|GoodsLabel newModelQuery()
|
|
* @method static Builder|GoodsLabel newQuery()
|
|
* @method static Builder|GoodsLabel query()
|
|
* @method static Builder|GoodsLabel whereGoodsId($value)
|
|
* @method static Builder|GoodsLabel whereId($value)
|
|
* @method static Builder|GoodsLabel whereLabelId($value)
|
|
*/
|
|
class GoodsLabel extends Model
|
|
{
|
|
public $timestamps = FALSE;
|
|
protected $table = 'goods_label';
|
|
protected $primaryKey = 'id';
|
|
|
|
function goods()
|
|
{
|
|
return $this->hasOne(Goods::class, 'id', 'goods_id');
|
|
}
|
|
} |