22 lines
540 B
PHP
22 lines
540 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class CoinWithdrawLog extends Model
|
||
|
|
{
|
||
|
|
protected $fillable = [];
|
||
|
|
protected $guarded = [];
|
||
|
|
|
||
|
|
public function user()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(user::class)->select('id', 'name','nickname', 'app_avatar', 'circle_avatar','sex', 'mobile','belief');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function operateUser()
|
||
|
|
{
|
||
|
|
return $this->hasOne(User::class, 'id', 'operate_user_id')->select('id', 'name','nickname', 'app_avatar','circle_avatar','sex', 'mobile','belief');
|
||
|
|
}
|
||
|
|
}
|