We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 212f11b commit 334b5deCopy full SHA for 334b5de
src/NativeServiceProvider.php
@@ -25,6 +25,7 @@
25
use Native\Laravel\Logging\LogWatcher;
26
use Native\Laravel\PowerMonitor as PowerMonitorImplementation;
27
use Native\Laravel\Windows\WindowManager as WindowManagerImplementation;
28
+use Phar;
29
use Spatie\LaravelPackageTools\Package;
30
use Spatie\LaravelPackageTools\PackageServiceProvider;
31
@@ -148,7 +149,8 @@ public function rewriteDatabase()
148
149
{
150
$databasePath = config('nativephp-internal.database_path');
151
- if (config('app.debug')) {
152
+ // Automatically create the database in development mode but not if we are running in a Phar
153
+ if (config('app.debug') && ! Phar::running()) {
154
$databasePath = database_path('nativephp.sqlite');
155
156
if (! file_exists($databasePath)) {
0 commit comments