1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 09:04:03 +00:00

change migration path

This commit is contained in:
Samuel Štancl 2019-08-10 14:31:05 +02:00
parent 6d5a536c68
commit 6c3f86a611
2 changed files with 5 additions and 3 deletions

View file

@ -38,7 +38,7 @@ class TenancyServiceProvider extends ServiceProvider
], 'config'); ], 'config');
$this->publishes([ $this->publishes([
__DIR__ . '/assets/2019_08_08_000000_create_tenants_table.php' => database_path('migrations'), __DIR__ . '/assets/migrations/2019_08_08_000000_create_tenants_table.php' => database_path('migrations'),
], 'migrations'); ], 'migrations');
$this->loadRoutesFrom(__DIR__ . '/routes.php'); $this->loadRoutesFrom(__DIR__ . '/routes.php');

View file

@ -25,7 +25,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
// $this->loadLaravelMigrations(); // $this->loadLaravelMigrations();
$this->loadMigrationsFrom(__DIR__ . '/../src/assets/migrations'); $this->loadMigrationsFrom(realpath(__DIR__ . '/../src/assets/migrations'));
// Artisan::call('migrate:fresh', [ // Artisan::call('migrate:fresh', [
// '--path' => __DIR__ . '/../src/assets/migrations' // '--path' => __DIR__ . '/../src/assets/migrations'
@ -108,7 +108,9 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
protected function getPackageProviders($app) protected function getPackageProviders($app)
{ {
return [\Stancl\Tenancy\TenancyServiceProvider::class]; return [
\Stancl\Tenancy\TenancyServiceProvider::class,
];
} }
protected function getPackageAliases($app) protected function getPackageAliases($app)