mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:14:03 +00:00
constructor doesn't work since Reflection is used, try specifying getDefaultName() instead
This commit is contained in:
parent
137688af25
commit
f04d4cd80f
2 changed files with 5 additions and 3 deletions
|
|
@ -31,14 +31,16 @@ class Migrate extends MigrateCommand
|
|||
*/
|
||||
public function __construct(Migrator $migrator, Dispatcher $dispatcher)
|
||||
{
|
||||
// Turn 'migrate {-- ...}' into 'tenants:migrate {-- ...}'
|
||||
$this->signature = 'tenants:' . $this->signature;
|
||||
|
||||
parent::__construct($migrator, $dispatcher);
|
||||
|
||||
$this->specifyParameters();
|
||||
}
|
||||
|
||||
public static function getDefaultName(): ?string
|
||||
{
|
||||
return 'tenants:migrate';
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue