You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
Unfortunately, Laravel doesn't allow you to cache closures in the config files.
So if you ever ran artisan config:cache it would fail when using config_api_callback as a closure.
Now the easy solution is to just not cache your config but in Laravel Vapor, we are kinda forced to.
Therefore I needed to make a workaround, I have included it below.
Unfortunately, Laravel doesn't allow you to cache closures in the config files.
So if you ever ran
artisan config:cache
it would fail when usingconfig_api_callback
as a closure.Now the easy solution is to just not cache your config but in Laravel Vapor, we are kinda forced to.
Therefore I needed to make a workaround, I have included it below.
Also, this might be good to talk about in the docs:
https://github.com/osiset/laravel-shopify/wiki/Multiple-Custom-Apps-on-Same-Codebase
Workaround
In the shopify-app.php config file
update:
'config_api_callback' => '\App\Providers\AppServiceProvider::shopifyConfigClosure',
add:
In the AppServiceProvider.php
add:
The text was updated successfully, but these errors were encountered: