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 25
25
use Native \Laravel \Logging \LogWatcher ;
26
26
use Native \Laravel \PowerMonitor as PowerMonitorImplementation ;
27
27
use Native \Laravel \Windows \WindowManager as WindowManagerImplementation ;
28
+ use Phar ;
28
29
use Spatie \LaravelPackageTools \Package ;
29
30
use Spatie \LaravelPackageTools \PackageServiceProvider ;
30
31
@@ -148,7 +149,8 @@ public function rewriteDatabase()
148
149
{
149
150
$ databasePath = config ('nativephp-internal.database_path ' );
150
151
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 ()) {
152
154
$ databasePath = database_path ('nativephp.sqlite ' );
153
155
154
156
if (! file_exists ($ databasePath )) {
You can’t perform that action at this time.
0 commit comments