6
0
Fork 0
release
panliang 2022-05-31 13:09:22 +08:00
parent ad6cff0929
commit 18c07b1879
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ class OrderProfit extends Model
protected $fillable = ['id', 'order_id', 'from_user_id', 'user_id', 'role', 'role_name', 'growth_value', 'ratio', 'money', 'sub_money', 'status', 'paid_at', 'pay_no', 'pay_way', 'pay_data', 'remarks'];
protected $dates = ['paid'];
public function user()
{
return $this->belongsTo(User::class, 'user_id');