laravel-shop/database/migrations
Fabian @ Blax Software d4ae9339ac feat(subscriptions): Cashier-backed subscription lifecycle with product link + events
Adds the package's missing subscription lifecycle so any host app gets
duration-aware, product-linked subscriptions without re-implementing billing:

- Models: Subscription (extends Laravel\Cashier\Subscription) + SubscriptionItem,
  in the package's UUID convention, resolved through shop.models/shop.tables.
  Subscription gains product()/resolveProduct(), callProductActions() (runs the
  product's ProductActions with the subscription + an access-expiry override),
  and recordStarted()/recordRenewed()/recordCanceled() lifecycle hooks.
- Events: SubscriptionStarted / SubscriptionRenewed / SubscriptionCanceled,
  carrying the Cashier subscription so host subclasses work too.
- Migration: UUID subscriptions / subscription_items tables (hasTable-guarded,
  config table names, nullable product_id + current_period_* columns).
- ShopServiceProvider points Cashier at these models by default; opt out via
  shop.subscriptions.register_cashier_models for apps that subclass Cashier.

Additive and backward-compatible (registration is config-gated, tables are
guarded). Adds SubscriptionLifecycleTest; full suite 1409 green. Docs + README.
2026-06-02 11:40:15 +02:00
..
2025_01_01_000001_create_blax_shop_tables.php IAM "max usage" feature 2026-05-19 14:01:52 +02:00
2025_01_01_000002_create_product_price_tiers_table.php I loanable product type, tiered pricing, lifecycle events, host helpers 2026-05-15 10:27:59 +02:00
2025_01_01_000003_add_stripe_to_users_table.php I loanable product type, tiered pricing, lifecycle events, host helpers 2026-05-15 10:27:59 +02:00
2025_01_01_000004_create_blax_shop_subscriptions.php feat(subscriptions): Cashier-backed subscription lifecycle with product link + events 2026-06-02 11:40:15 +02:00
2026_01_01_000000_drop_stock_quantity_from_products.php BF edgecases, R structure, A tests 2026-05-18 13:05:38 +02:00
2026_01_01_000001_drop_in_stock_and_stock_status_from_products.php BF edgecases, R structure, A tests 2026-05-18 13:05:38 +02:00
2026_01_01_000002_add_max_per_cart_and_max_per_user_to_products.php IAM "max usage" feature 2026-05-19 14:01:52 +02:00