1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 13:14:05 +00:00
tenancy/src/Traits/DealsWithMigrations.php
Samuel Štancl 2b00665247
[2.2.0] Allow --path to be specified for migration commands (#211)
* Allow --path to be specified for migration commands

* Fix tests
2019-11-07 21:44:45 +01:00

17 lines
386 B
PHP

<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Traits;
trait DealsWithMigrations
{
protected function getMigrationPaths()
{
if ($this->input->hasOption('path') && $this->input->getOption('path')) {
return parent::getMigrationPaths();
}
return [config('tenancy.migrations_directory', database_path('migrations/tenant'))];
}
}