mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 11:54:04 +00:00
Add command tests
This commit is contained in:
parent
33fcb8a936
commit
e1def355f9
13 changed files with 98 additions and 15 deletions
|
|
@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Storage;
|
|||
|
||||
trait BootstrapsTenancy
|
||||
{
|
||||
public $oldStoragePaths = [];
|
||||
public $originalSettings = [];
|
||||
|
||||
public function bootstrap()
|
||||
{
|
||||
|
|
@ -41,7 +41,7 @@ trait BootstrapsTenancy
|
|||
|
||||
public function suffixFilesystemRootPaths()
|
||||
{
|
||||
$old = $this->oldStoragePaths ?: [
|
||||
$old = $this->originalSettings ?: [
|
||||
"storage_disks" => [],
|
||||
"storage_path" => $this->app->storagePath(),
|
||||
];
|
||||
|
|
@ -64,6 +64,6 @@ trait BootstrapsTenancy
|
|||
$old['storage_disks'][$disk] = $root;
|
||||
}
|
||||
|
||||
$this->oldStoragePaths = $old;
|
||||
$this->originalSettings = $old;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ trait DealsWithMigrations
|
|||
{
|
||||
protected function getMigrationPaths()
|
||||
{
|
||||
return [database_path('migrations/tenant')];
|
||||
return [config('tenancy.migrations_directory')];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace Stancl\Tenancy\Traits;
|
||||
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
|
||||
trait HasATenantsOption
|
||||
{
|
||||
protected function getOptions()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue