1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 09:24:02 +00:00
This commit is contained in:
Samuel Štancl 2019-08-15 16:49:30 +02:00
parent 830b2ab5fb
commit c6ebc09a9d

View file

@ -27,8 +27,8 @@ class Install extends Command
*/
public function handle()
{
$this->line('Installing stancl/tenancy... ⌛');
$this->call('vendor:publish', [
$this->comment('Installing stancl/tenancy... ⌛');
$this->callSilent('vendor:publish', [
'--provider' => 'Stancl\Tenancy\TenancyServiceProvider',
'--tag' => 'config',
]);
@ -61,16 +61,18 @@ Route::get('/your/application/homepage', function () {
");
$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.");
$migration = $this->ask('Do you want to publish the default database migration? [yes/no]', 'yes');
if (\strtolower($migration) === 'yes') {
$this->call('vendor:publish', [
$this->callSilent('vendor:publish', [
'--provider' => 'Stancl\Tenancy\TenancyServiceProvider',
'--tag' => 'migrations',
]);
$this->info('✔️ Created migration.');
}
$this->info('\n✔stancl/tenancy installed successfully ✨.');
$this->line('');
$this->info('✔️ stancl/tenancy installed successfully ✨.');
}
}