mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 17:04:03 +00:00
Move tenant routes file
This commit is contained in:
parent
5a19f1769e
commit
5eeba43796
3 changed files with 12 additions and 4 deletions
|
|
@ -37,7 +37,10 @@ class Install extends Command
|
|||
$this->info('✔️ Created config/tenancy.php');
|
||||
|
||||
if (! file_exists(base_path('routes/tenant.php'))) {
|
||||
file_put_contents(base_path('routes/tenant.php'), file_get_contents(__DIR__ . '/../../assets/tenant_routes.php.stub'));
|
||||
$this->callSilent('vendor:publish', [
|
||||
'--provider' => 'Stancl\Tenancy\TenancyServiceProvider',
|
||||
'--tag' => 'routes',
|
||||
]);
|
||||
$this->info('✔️ Created routes/tenant.php');
|
||||
} else {
|
||||
$this->info('Found routes/tenant.php.');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue