MiniShopGoogleServiceProvider).google/apiclient) are composer-installable and configurable via Laravel’s .env.products with google_product_id). Migrations should be idempotent and backward-compatible.config/services.php or env variables).composer.json constraints.)MiniShopGoogle::syncProducts()).product.created).google/apiclient library for robust API interactions.sync-to-google job) to avoid timeouts.gtin, mpn, image_link).composer require birko/minishop-google
php artisan vendor:publish --provider="MiniShopGoogleServiceProvider"
.env:
GOOGLE_MERCHANT_ID=your_id
GOOGLE_API_KEY=your_key
config/services.php:
'google' => [
'merchant_id' => env('GOOGLE_MERCHANT_ID'),
'api_key' => env('GOOGLE_API_KEY'),
],
^8.0 or ^9.0).^8.0).description → google_description).completed → Google Ads conversion tracking).ga4 events for product views)..env and config changes for future onboarding.google_sync.log).quota_exceeded).telescope or laravel-logger to trace API calls.google_product_cache) and delayed retries.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Google API downtime | Product feed pauses | Implement retry logic with jitter. |
| Invalid product data (e.g., missing GTIN) | Feed disapprovals | Validate data before syncing. |
| OAuth2 token expiration | Sync failures | Use refresh tokens and auto-renewal. |
| Database corruption (e.g., sync job crash) | Inconsistent data | Use transactions and rollback mechanisms. |
| Queue backlog | Delayed syncs |
How can I help you explore Laravel packages today?