mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:44:04 +00:00
wip
This commit is contained in:
parent
2c757bc047
commit
58fe1f7c32
1 changed files with 3 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ class Install extends Command
|
||||||
\file_get_contents(app_path('Http/Kernel.php'))
|
\file_get_contents(app_path('Http/Kernel.php'))
|
||||||
);
|
);
|
||||||
|
|
||||||
$newKernel = \str_replace('protected $middleware = [', "protected \$middleware = [
|
$newKernel = \str_replace("'web' => [", "'web' => [
|
||||||
\Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains::class,", $newKernel);
|
\Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains::class,", $newKernel);
|
||||||
|
|
||||||
\file_put_contents(app_path('Http/Kernel.php'), $newKernel);
|
\file_put_contents(app_path('Http/Kernel.php'), $newKernel);
|
||||||
|
|
@ -63,7 +63,7 @@ class Install extends Command
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::get('/your/application/homepage', function () {
|
Route::get('/', function () {
|
||||||
return 'This is your multi-tenant application. The uuid of the current tenant is ' . tenant('uuid');
|
return 'This is your multi-tenant application. The uuid of the current tenant is ' . tenant('uuid');
|
||||||
});
|
});
|
||||||
"
|
"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue