belongsTo(User::class, 'id_user', 'id'); } public function kost() { return $this->belongsTo(Kost::class, 'id_kost', 'id'); } }