mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 02:54:03 +00:00
wip
This commit is contained in:
parent
830b2ab5fb
commit
c6ebc09a9d
1 changed files with 10 additions and 8 deletions
|
|
@ -27,8 +27,8 @@ class Install extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$this->line('Installing stancl/tenancy... ⌛');
|
$this->comment('Installing stancl/tenancy... ⌛');
|
||||||
$this->call('vendor:publish', [
|
$this->callSilent('vendor:publish', [
|
||||||
'--provider' => 'Stancl\Tenancy\TenancyServiceProvider',
|
'--provider' => 'Stancl\Tenancy\TenancyServiceProvider',
|
||||||
'--tag' => 'config',
|
'--tag' => 'config',
|
||||||
]);
|
]);
|
||||||
|
|
@ -61,16 +61,18 @@ Route::get('/your/application/homepage', function () {
|
||||||
");
|
");
|
||||||
$this->info('✔️ Created routes/tenant.php');
|
$this->info('✔️ Created routes/tenant.php');
|
||||||
|
|
||||||
|
$this->line('');
|
||||||
$this->line("The package lets you store data about tenants either in Redis or in a relational database like MySQL. If you're going to use the database storage, you need to create a tenants table.");
|
$this->line("The package lets you store data about tenants either in Redis or in a relational database like MySQL. If you're going to use the database storage, you need to create a tenants table.");
|
||||||
$migration = $this->ask('Do you want to publish the default database migration? [yes/no]', 'yes');
|
$migration = $this->ask('Do you want to publish the default database migration? [yes/no]', 'yes');
|
||||||
if (\strtolower($migration) === 'yes') {
|
if (\strtolower($migration) === 'yes') {
|
||||||
$this->call('vendor:publish', [
|
$this->callSilent('vendor:publish', [
|
||||||
'--provider' => 'Stancl\Tenancy\TenancyServiceProvider',
|
'--provider' => 'Stancl\Tenancy\TenancyServiceProvider',
|
||||||
'--tag' => 'migrations',
|
'--tag' => 'migrations',
|
||||||
]);
|
]);
|
||||||
$this->info('✔️ Created migration.');
|
$this->info('✔️ Created migration.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->info('\n✔️stancl/tenancy installed successfully ✨.');
|
$this->line('');
|
||||||
|
$this->info('✔️ stancl/tenancy installed successfully ✨.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue