Restore props support only for the Tenant domain using a tenant-scoped model instead of the removed generic Prop/Propable implementation. Add tenant prop definitions and instance values: - add TenantProp and TenantPropValue models - add tenant-only data type enum and prop validation rules - add migrations for tenant_props and tenant_prop_values tables - persist prop values by tenant_codigo + tenant_prop_codigo Expose tenant prop management through the Tenant domain: - add TenantPropController with CRUD endpoints - add Store/Update request classes for tenant prop definitions - register tenant-props routes Re-enable tenant prop syncing and serialization: - restore createWithProps/updateWithProps flows in Tenant - validate props on tenant create/update requests - include collapsed props in TenantResource - keep the implementation scoped to Tenant without reintroducing polymorphic props Add coverage for the new tenant prop behavior: - update bootstrap tenant feature test to assert prop values - add feature tests for tenant prop creation and validation
14 lines
497 B
PHP
14 lines
497 B
PHP
<?php
|
|
|
|
use App\Domains\Tenant\Controllers\BootstrapTenantController;
|
|
use App\Domains\Tenant\Controllers\TenantController;
|
|
use App\Domains\Tenant\Controllers\TenantPropController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::get('tenants/bootstrap/{dominio}', BootstrapTenantController::class)
|
|
->where('dominio', '.*');
|
|
|
|
Route::apiResource('tenants', TenantController::class);
|
|
Route::apiResource('tenant-props', TenantPropController::class)
|
|
->parameters(['tenant-props' => 'tenantProp']);
|