I am trying to build a Shopify app using laravel. I have created an admin Dashboard for the app. I created successfully a snippet file on the current Shopify theme using asset API. I can pass any HTML code as a snippet file value. This means I can pass any HTML or liquid code in the snippet file. That snippet file was created from my app.
On the controller for the API, I need to run a query based on the same customer ID and the same Shopify shop name to get data from my database. In my database, I saved customer id and shop Name, and product id.
Now, How can I get a Shopify shop name and customer ID in the laravel controller? So, I can run a SQL query using Shopify shop name and customer-id to get data from my database.
I really need this assistance, I am trying to for the last few days. But I cannot find a solution.