Browse Source

增加模型关联

develop
李可松 4 years ago
parent
commit
439e81a493
  1. 10
      app/Models/UserMoneyLog.php

10
app/Models/UserMoneyLog.php

@ -14,4 +14,14 @@ class UserMoneyLog extends BaseModel
parent::__construct($attributes);
$this->timestamps = false;
}
public function agent()
{
return $this->belongsTo(Agent::class);
}
public function order()
{
return $this->belongsTo(Order::class);
}
}
Loading…
Cancel
Save