belongsTo(ApiKey::class, 'api_key_id'); } /** * 关联客户 */ public function client() { return $this->belongsTo(Client::class, 'client_id'); } }