mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 06:24:03 +00:00
20 lines
425 B
PHP
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')];
|
|
}
|
|
}
|