<?php
/**
* Multi-Vendor configuration.
*
* MULTI_VENDOR=true → marketplace mode: vendor switcher, vendor registration,
* commission splits, per-vendor dashboards are all enabled.
* MULTI_VENDOR=false → single-vendor store: GlobalVendorScope still enforces
* DEFAULT_VENDOR_ID on every query, but the storefront
* shows no vendor branding / switcher.
*/
return [
/*
|--------------------------------------------------------------------------
| Multi-Vendor Mode
|--------------------------------------------------------------------------
*/
'enabled' => (bool) env('MULTI_VENDOR', true),
/*
|--------------------------------------------------------------------------
| Default Vendor ID
|--------------------------------------------------------------------------
| Used when MULTI_VENDOR=false to scope every query to a single vendor,
| or as a fallback when no vendor context can be resolved from the request.
*/
'default_vendor_id' => (int) env('DEFAULT_VENDOR_ID', 1),
/*
|--------------------------------------------------------------------------
| Commission
|--------------------------------------------------------------------------
| Platform commission percentage taken from each vendor sale.
| Can be overridden per-vendor in the vendors table.
*/
'default_commission_rate' => env('DEFAULT_COMMISSION_RATE', 10), // percent
/*
|--------------------------------------------------------------------------
| Vendor Registration
|--------------------------------------------------------------------------
*/
'registration' => [
'enabled' => (bool) env('VENDOR_REGISTRATION_ENABLED', true),
'require_approval' => (bool) env('VENDOR_REQUIRE_APPROVAL', true),
'kyc_required' => (bool) env('VENDOR_KYC_REQUIRED', false), // Phase 1: optional
],
/*
|--------------------------------------------------------------------------
| Vendor Plan Limits (Phase 4)
|--------------------------------------------------------------------------
*/
'plans' => [
'free' => ['products' => 10, 'images_per_product' => 3],
'basic' => ['products' => 100, 'images_per_product' => 8],
'pro' => ['products' => 1000, 'images_per_product' => 15],
'enterprise' => ['products' => -1, 'images_per_product' => -1], // unlimited
],
];