1
0
Fork 0
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:
Samuel Štancl 2022-03-30 16:31:58 +02:00
parent 137688af25
commit f04d4cd80f
2 changed files with 5 additions and 3 deletions

View file

@ -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.
*