Afterfetch, beforefetch life cycle methods are not working

There is a method but it’s only for enterprise licenses (any level) but is still considered unstable and experimental for now.

It’s called conditionals: Configurations - Strapi Developer Documentation