laravel-shopify
laravel-shopify copied to clipboard
Call to a member function getDomain() on null
When i tried to call localhost it gives error
Facing same error.
Laravel app can not get session token. Actually there is a code block which integrates with shopify via App bridge and from there I could manage to send shopfiy session token to the middleware.
So as you see if there is a session-token class, it will write the session value inside it. If you send your requests with that input there won't be a problem.
@ugurmuslim you added this to your middleware?
No. I added them to my forms in my blades. it can be welcome blade or any other blade you created which extends from shopify-app::layouts.default
I created a PR for adding a login page to fix this issue: https://github.com/osiset/laravel-shopify/pull/1121
Closing as issue is potentially resolved in another PR. Reopen if still and issue.