@@ -23,7 +23,7 @@ class NativeServiceProvider extends PackageServiceProvider
2323 public function configurePackage (Package $ package ): void
2424 {
2525 $ package
26- ->name ('native-php ' )
26+ ->name ('nativephp ' )
2727 ->hasCommands ([
2828 MinifyApplicationCommand::class,
2929 LoadStartupConfigurationCommand::class,
@@ -39,7 +39,7 @@ public function packageRegistered()
3939 ServeCommand::$ passthroughVariables [] = $ env ;
4040 }
4141
42- if (config ('native-php .running ' )) {
42+ if (config ('nativephp .running ' )) {
4343 $ this ->configureApp ();
4444 }
4545 }
@@ -48,22 +48,22 @@ protected function configureApp()
4848 {
4949 $ oldStoragePath = $ this ->app ->storagePath ();
5050
51- $ this ->app ->useStoragePath (config ('native-php .storage_path ' ));
51+ $ this ->app ->useStoragePath (config ('nativephp .storage_path ' ));
5252
5353 // Patch all config values that contain the old storage path
5454 $ config = Arr::dot (config ()->all ());
5555
5656 foreach ($ config as $ key => $ value ) {
5757 if (is_string ($ value ) && str_contains ($ value , $ oldStoragePath )) {
58- $ newValue = str_replace ($ oldStoragePath , config ('native-php .storage_path ' ), $ value );
58+ $ newValue = str_replace ($ oldStoragePath , config ('nativephp .storage_path ' ), $ value );
5959 config ([$ key => $ newValue ]);
6060 }
6161 }
6262
6363 config (['database.connections.nativephp ' => [
6464 'driver ' => 'sqlite ' ,
6565 'url ' => env ('DATABASE_URL ' ),
66- 'database ' => config ('native-php .database_path ' ),
66+ 'database ' => config ('nativephp .database_path ' ),
6767 'prefix ' => '' ,
6868 'foreign_key_constraints ' => env ('DB_FOREIGN_KEYS ' , true ),
6969 ]]);
0 commit comments