# larablog/membership

Paid membership plans on top of `larablog/payment`.

## Prerequisites

1. Enable `larablog/payment`.
2. Enable this plugin.
3. `php artisan migrate`
4. Seed demo plans (optional):

```bash
php artisan db:seed --class=Plugins\\Larablog\\Membership\\Database\\Seeders\\MembershipPlanSeeder
```

## Usage

- Admin → Plugins group → Membership plans
- Public: `/plugins/membership`
- Status JSON: `/plugins/membership/status`
- Mark an article as members-only in the article form (mutually exclusive with read password and paid-content)

Checkout uses Stub payment: `/plugins/payment/checkout?product_type=membership&product_id={planId}`.
