hasMany(SubKriteria::class); } public function penilaians() { return $this->hasMany(Penilaian::class, 'kriteria_id'); } }