@famgia/omnify-laravel 0.0.83 → 0.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3842,14 +3842,22 @@ function laravelPlugin(options) {
3842
3842
  existingContent = null;
3843
3843
  }
3844
3844
  } else if (existsSync(configAppPath)) {
3845
- laravelVersion = "laravel10-";
3846
3845
  try {
3847
- existingContent = readFileSync(configAppPath, "utf-8");
3846
+ const configContent = readFileSync(configAppPath, "utf-8");
3847
+ if (/'providers'\s*=>\s*\[/.test(configContent)) {
3848
+ laravelVersion = "laravel10-";
3849
+ existingContent = configContent;
3850
+ } else {
3851
+ laravelVersion = "laravel11+";
3852
+ existingContent = null;
3853
+ }
3848
3854
  } catch {
3855
+ laravelVersion = "laravel11+";
3849
3856
  existingContent = null;
3850
3857
  }
3851
3858
  } else {
3852
3859
  laravelVersion = "laravel11+";
3860
+ existingContent = null;
3853
3861
  }
3854
3862
  const registration = generateProviderRegistration(existingContent, laravelVersion, laravelRoot);
3855
3863
  if (registration && !registration.alreadyRegistered) {
@@ -3996,4 +4004,4 @@ export {
3996
4004
  getFactoryPath,
3997
4005
  laravelPlugin
3998
4006
  };
3999
- //# sourceMappingURL=chunk-TBXCIKK7.js.map
4007
+ //# sourceMappingURL=chunk-KKNVSIBX.js.map