love_php/app/Models/AnchorArticle.php

23 lines
450 B
PHP
Raw Normal View History

2026-04-02 09:20:51 +08:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Live\Anchor;
use \App\Models\Server\MerchantInformation;
class AnchorArticle extends Model
{
use \Conner\Tagging\Taggable;
//
public function anchor(){
return $this->hasOne(Anchor::class,'id','anchor_id');
}
public function information()
{
return $this->hasOne(MerchantInformation::class, 'id', 'information_id');
}
}