mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 07:54:03 +00:00
Update install command
This commit is contained in:
parent
1790e050c5
commit
6d13ff825a
2 changed files with 8 additions and 8 deletions
|
|
@ -59,9 +59,9 @@ class Install extends Command
|
||||||
| Tenant Routes
|
| Tenant Routes
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here is where you can register tenant routes for your application. These
|
| Here you can register the tenant routes for your application.
|
||||||
| routes are loaded by the TenantRouteServiceProvider within a group
|
| These routes are loaded by the TenantRouteServiceProvider
|
||||||
| which contains the \"InitializeTenancy\" middleware. Good luck!
|
| with the tenancy and web middleware groups. Good luck!
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -73,11 +73,11 @@ Route::get('/app', function () {
|
||||||
$this->info('✔️ Created routes/tenant.php');
|
$this->info('✔️ Created routes/tenant.php');
|
||||||
|
|
||||||
$this->line('');
|
$this->line('');
|
||||||
$this->line("This 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 tables for tenants and domains.");
|
$this->line("This package lets you store data about tenants either in Redis or in a relational database like MySQL. To store data about tenants in a relational database, you need a few database tables.");
|
||||||
if ($this->confirm('Do you want to publish the default database migrations?', true)) {
|
if ($this->confirm('Do you wish to publish the migrations that create these tables?', true)) {
|
||||||
$this->callSilent('vendor:publish', [
|
$this->callSilent('vendor:publish', [
|
||||||
'--provider' => 'Stancl\Tenancy\TenancyServiceProvider',
|
'--provider' => 'Stancl\Tenancy\TenancyServiceProvider',
|
||||||
'--tag' => 'migrations',
|
'--tag' => 'migrations',
|
||||||
]);
|
]);
|
||||||
$this->info('✔️ Created migrations. Remember to run [php artisan migrate]!');
|
$this->info('✔️ Created migrations. Remember to run [php artisan migrate]!');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ class CommandsTest extends TestCase
|
||||||
file_put_contents(app_path('Http/Kernel.php'), file_get_contents(__DIR__ . '/Etc/defaultHttpKernel.stub'));
|
file_put_contents(app_path('Http/Kernel.php'), file_get_contents(__DIR__ . '/Etc/defaultHttpKernel.stub'));
|
||||||
|
|
||||||
$this->artisan('tenancy:install')
|
$this->artisan('tenancy:install')
|
||||||
->expectsQuestion('Do you want to publish the default database migrations?', 'yes');
|
->expectsQuestion('Do you wish to publish the migrations that create these tables?', 'yes');
|
||||||
$this->assertFileExists(base_path('routes/tenant.php'));
|
$this->assertFileExists(base_path('routes/tenant.php'));
|
||||||
$this->assertFileExists(base_path('config/tenancy.php'));
|
$this->assertFileExists(base_path('config/tenancy.php'));
|
||||||
$this->assertFileExists(database_path('migrations/2019_09_15_000010_create_tenants_table.php'));
|
$this->assertFileExists(database_path('migrations/2019_09_15_000010_create_tenants_table.php'));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue