mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:24:02 +00:00
wip
This commit is contained in:
parent
2c757bc047
commit
58fe1f7c32
1 changed files with 3 additions and 3 deletions
|
|
@ -42,8 +42,8 @@ class Install extends Command
|
|||
\file_get_contents(app_path('Http/Kernel.php'))
|
||||
);
|
||||
|
||||
$newKernel = \str_replace('protected $middleware = [', "protected \$middleware = [
|
||||
\Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains::class,", $newKernel);
|
||||
$newKernel = \str_replace("'web' => [", "'web' => [
|
||||
\Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains::class,", $newKernel);
|
||||
|
||||
\file_put_contents(app_path('Http/Kernel.php'), $newKernel);
|
||||
$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');
|
||||
});
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue