culturekings/shopify-app-auth-laravel

Error on installing app on a store

Closed this issue · 0 comments

I get the following error during the installation of the app on a store

capto_capture 2017-11-30_11-52-55_am

Could you advice what I may be missing. I seem to have correct entries on the tables.

I tried the following on a test route

    $shopUrl = "some-name.myshopify.com"; //exists on the db
    $appName = "some-app-name"; //exists on the db

    $user = \CultureKings\ShopifyAuth\Models\ShopifyUser::where('shop_url', $shopUrl)->whereHas('shopifyAppUsers', function ($query) use ($appName) {
        $query->whereShopifyAppName($appName);
    })->get();

    dd($user->shopifyAppUsers->count());

capto_capture 2017-11-30_11-56-27_am