1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-14 06:24:03 +00:00
tenancy/src/Concerns/DealsWithMigrations.php
2022-11-08 13:34:04 +01:00

20 lines
425 B
PHP

<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Concerns;
/**
* @mixin \Illuminate\Database\Console\Migrations\BaseCommand
*/
trait DealsWithMigrations
{
protected function getMigrationPaths(): array
{
if ($this->input->hasOption('path') && $this->input->getOption('path')) {
return parent::getMigrationPaths();
}
return [database_path('migrations/tenant')];
}
}