fix: empty stancl tenant.php (we use slug-based resolution, not domain-based)
This commit is contained in:
+7
-18
@@ -2,28 +2,17 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
|
||||||
use Stancl\Tenancy\Middleware\InitializeTenancyByDomain;
|
|
||||||
use Stancl\Tenancy\Middleware\PreventAccessFromCentralDomains;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Tenant Routes
|
| Tenant Routes (stancl/tenancy)
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you can register the tenant routes for your application.
|
| AutoCRM nu folosește Stancl Domain-based tenant resolution.
|
||||||
| These routes are loaded by the TenantRouteServiceProvider.
|
| Tenant resolution se face prin propriul ResolveTenant middleware
|
||||||
|
| (slug-based, în Filament panel + bootstrap/app.php).
|
||||||
|
|
|
|
||||||
| Feel free to customize them however you want. Good luck!
|
| Acest fișier este intenționat gol — toate rutele tenant trec prin
|
||||||
|
| Filament panels (TenantPanelProvider) sau prin grupul standard 'web'
|
||||||
|
| (routes/web.php) care are deja ResolveTenant ca middleware appended.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::middleware([
|
|
||||||
'web',
|
|
||||||
InitializeTenancyByDomain::class,
|
|
||||||
PreventAccessFromCentralDomains::class,
|
|
||||||
])->group(function () {
|
|
||||||
Route::get('/', function () {
|
|
||||||
return 'This is your multi-tenant application. The id of the current tenant is ' . tenant('id');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user