mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 11:14:04 +00:00
Move tenant routes file
This commit is contained in:
parent
5a19f1769e
commit
5eeba43796
3 changed files with 12 additions and 4 deletions
26
assets/tenant_routes.stub.php
Normal file
26
assets/tenant_routes.stub.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Stancl\Tenancy\Middleware\InitializeTenancyByDomain;
|
||||
use Stancl\Tenancy\Middleware\PreventAccessFromCentralDomains;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Tenant Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you can register the tenant routes for your application.
|
||||
| These routes are loaded by the TenantRouteServiceProvider.
|
||||
|
|
||||
| Feel free to customize them however you want. Good luck!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::group([
|
||||
'middleware' => ['web', PreventAccessFromCentralDomains::class, InitializeTenancyByDomain::class],
|
||||
'prefix' => '/app',
|
||||
], function () {
|
||||
Route::get('/', function () {
|
||||
return 'This is your multi-tenant application. The id of the current tenant is ' . tenant('id');
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue