问答 / 0 / 2 / 创建于 3年前
表如下
class SomeModel extends Model { public function user() { return $this->belongsTo(User::class); } public function unlockUser() { return $this->belongsTo(User::class, 'unlock_user_id'); } }
表的模型写两个user关联的方法
我要举报该,理由是: