Level 33
It looks to me like you need a Many to Many relationship which relates a certificate to a hotel instead of a hasManyThrough relationship.
https://laravel.com/docs/7.x/eloquent-relationships#many-to-many
The role_user pivot table in the example would be the certificate_list table in your case, having a hotel_id and certificate_id.