File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2525use Native \Laravel \Logging \LogWatcher ;
2626use Native \Laravel \PowerMonitor as PowerMonitorImplementation ;
2727use Native \Laravel \Windows \WindowManager as WindowManagerImplementation ;
28+ use Phar ;
2829use Spatie \LaravelPackageTools \Package ;
2930use Spatie \LaravelPackageTools \PackageServiceProvider ;
3031
@@ -148,7 +149,8 @@ public function rewriteDatabase()
148149 {
149150 $ databasePath = config ('nativephp-internal.database_path ' );
150151
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 ()) {
152154 $ databasePath = database_path ('nativephp.sqlite ' );
153155
154156 if (! file_exists ($ databasePath )) {
You can’t perform that action at this time.
0 commit comments