23 lines
450 B
PHP
23 lines
450 B
PHP
|
|
<?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');
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|