1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 11:14:03 +00:00
tenancy/src/Concerns/DealsWithMigrations.php
2020-05-21 15:54:35 +02:00

17 lines
346 B
PHP

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