1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 06:04:03 +00:00

Allow --path to be specified for migration commands

This commit is contained in:
Samuel Štancl 2019-11-03 18:29:25 +01:00
parent aeb15d4251
commit 47aaece876

View file

@ -8,6 +8,10 @@ trait DealsWithMigrations
{
protected function getMigrationPaths()
{
if ($this->input->hasOption('path')) {
return parent::getMigrationPaths();
}
return [config('tenancy.migrations_directory', database_path('migrations/tenant'))];
}
}