Files
star-erp/routes/tenant.php
sky121113 79e5916d19
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 46s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped
fix(routes): implementing universal routes to resolve 404 on central domain
2026-01-15 13:36:59 +08:00

24 lines
821 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
declare(strict_types=1);
use Illuminate\Support\Facades\Route;
use Stancl\Tenancy\Middleware\InitializeTenancyByDomain;
use Stancl\Tenancy\Middleware\PreventAccessFromCentralDomains;
/*
|--------------------------------------------------------------------------
| Tenant Routes
|--------------------------------------------------------------------------
|
| 租戶專屬路由。當使用者透過租戶網域存取時,會自動初始化租戶 context。
|
| 注意:目前 ERP 路由定義在 routes/web.php這些路由在「所有」域名都可用。
| 當請求來自租戶域名時tenancy middleware 會自動切換到租戶資料庫。
|
*/
// 此處可以定義「僅」租戶可用的路由 (central domain 不可存取)
// 目前不需要,因為 ERP 功能對 central 和 tenant 都開放