1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 04:54:03 +00:00
This commit is contained in:
Samuel Štancl 2019-08-23 22:11:05 +02:00
parent 2c757bc047
commit 58fe1f7c32

View file

@ -42,8 +42,8 @@ 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);
$this->info('✔️ Set middleware priority'); $this->info('✔️ Set middleware priority');
@ -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');
}); });
" "