25 lines
575 B
PHP
25 lines
575 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use App\Models\Live\Anchor;
|
||
|
|
use App\Models\Server\MerchantUser;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class MEarningwithdraws extends Model
|
||
|
|
{
|
||
|
|
protected $table = 'm_earning_withdraws';
|
||
|
|
protected $fillable = [];
|
||
|
|
protected $guarded = [];
|
||
|
|
|
||
|
|
public function anchor(){
|
||
|
|
return $this->hasOne(Anchor::class,'m_id','m_id');
|
||
|
|
}
|
||
|
|
public function admin(){
|
||
|
|
return $this->hasOne(User::class,'id','admin_id');
|
||
|
|
}
|
||
|
|
public function user(){
|
||
|
|
return $this->hasOne(MerchantUser::class,'id','m_user_id');
|
||
|
|
}
|
||
|
|
}
|