From b16e89f936a2568c3225d520bb21fe48ca061f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 16 Aug 2019 13:57:42 +0200 Subject: [PATCH] Move assets to root --- {src/assets => assets}/config.php | 0 .../migrations/2019_08_08_000000_create_tenants_table.php | 0 src/TenancyServiceProvider.php | 4 ++-- tests/TestCase.php | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename {src/assets => assets}/config.php (100%) rename {src/assets => assets}/migrations/2019_08_08_000000_create_tenants_table.php (100%) diff --git a/src/assets/config.php b/assets/config.php similarity index 100% rename from src/assets/config.php rename to assets/config.php diff --git a/src/assets/migrations/2019_08_08_000000_create_tenants_table.php b/assets/migrations/2019_08_08_000000_create_tenants_table.php similarity index 100% rename from src/assets/migrations/2019_08_08_000000_create_tenants_table.php rename to assets/migrations/2019_08_08_000000_create_tenants_table.php diff --git a/src/TenancyServiceProvider.php b/src/TenancyServiceProvider.php index 0b228e6b..b982f7ee 100644 --- a/src/TenancyServiceProvider.php +++ b/src/TenancyServiceProvider.php @@ -33,11 +33,11 @@ class TenancyServiceProvider extends ServiceProvider ]); $this->publishes([ - __DIR__ . '/assets/config.php' => config_path('tenancy.php'), + __DIR__ . '/../assets/config.php' => config_path('tenancy.php'), ], 'config'); $this->publishes([ - __DIR__ . '/assets/migrations/' => database_path('migrations'), + __DIR__ . '/../assets/migrations/' => database_path('migrations'), ], 'migrations'); $this->loadRoutesFrom(__DIR__ . '/routes.php'); diff --git a/tests/TestCase.php b/tests/TestCase.php index e363ce0b..9cafb202 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -24,7 +24,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase Redis::connection('cache')->flushdb(); $this->loadMigrationsFrom([ - '--path' => realpath(__DIR__ . '/../src/assets/migrations'), + '--path' => realpath(__DIR__ . '/../assets/migrations'), '--database' => 'central', ]); config(['database.default' => 'sqlite']); // fix issue caused by loadMigrationsFrom