1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 08:44:02 +00:00
tenancy/src/Concerns/DealsWithMigrations.php

17 lines
355 B
PHP

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