mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 22:04:04 +00:00
register dumcommand when L8
This commit is contained in:
parent
800f533011
commit
f165fc58ba
2 changed files with 21 additions and 1 deletions
|
|
@ -84,10 +84,16 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
Commands\Migrate::class,
|
||||
Commands\Rollback::class,
|
||||
Commands\TenantList::class,
|
||||
Commands\TenantDump::class,
|
||||
Commands\MigrateFresh::class,
|
||||
]);
|
||||
|
||||
if (version_compare(app()->version(), '8.0', '>=')) {
|
||||
// DumpCommand only exists since Laravel 8.0 or above
|
||||
$this->commands([
|
||||
Commands\TenantDump::class,
|
||||
]);
|
||||
}
|
||||
|
||||
$this->publishes([
|
||||
__DIR__ . '/../assets/config.php' => config_path('tenancy.php'),
|
||||
], 'config');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue