diff --git a/src/NativeServiceProvider.php b/src/NativeServiceProvider.php index 9701766..89c0740 100644 --- a/src/NativeServiceProvider.php +++ b/src/NativeServiceProvider.php @@ -84,6 +84,13 @@ public function packageRegistered() } } + public function bootingPackage() + { + if (config('nativephp-internal.running')) { + $this->rewriteDatabase(); + } + } + protected function configureApp() { if (config('app.debug')) { @@ -94,8 +101,6 @@ protected function configureApp() $this->rewriteStoragePath(); - $this->rewriteDatabase(); - $this->configureDisks(); config(['session.driver' => 'file']);