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