Hi,
I want to enable/disable functionality of an extension on click of a button on embedded app or admin side. I have stored the state of button in Laravel database. Now, I have two approaches. One, when saving the state of button i disable the extension, but the question here is can we disable an extension? In which file the extension is configured? Second, I add if/else condition on schema (extension is creating a section in theme) in extension liquid file, this can be done by hitting API which will get the state of button from database. The confusing part here is how am I going to call API in liquid file to get data from Laravel database. Any idea what would be the right approach to implement this functionality?