generathor-laravel 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -810,17 +810,17 @@ function generators(configuration) {
810
810
  }
811
811
  function eloquent(configuration) {
812
812
  configuration = configuration || {};
813
- configuration.onlyEloquentModels = true;
814
- configuration.createLaravelUserModel = true;
815
- configuration.laravelVersion = 13;
813
+ configuration.onlyEloquentModels = "onlyEloquentModels" in configuration ? configuration.onlyEloquentModels : true;
814
+ configuration.createLaravelUserModel = "createLaravelUserModel" in configuration ? configuration.createLaravelUserModel : true;
815
+ configuration.laravelVersion = "laravelVersion" in configuration ? configuration.laravelVersion : 13;
816
816
  configuration.eloquent = configuration.eloquent || {};
817
817
  return generators(configuration);
818
818
  }
819
819
  function livewire(configuration) {
820
820
  configuration = configuration || {};
821
- configuration.onlyEloquentModels = false;
822
- configuration.createLaravelUserModel = true;
823
- configuration.laravelVersion = 13;
821
+ configuration.onlyEloquentModels = "onlyEloquentModels" in configuration ? configuration.onlyEloquentModels : false;
822
+ configuration.createLaravelUserModel = "createLaravelUserModel" in configuration ? configuration.createLaravelUserModel : true;
823
+ configuration.laravelVersion = "laravelVersion" in configuration ? configuration.laravelVersion : 13;
824
824
  configuration.eloquent = configuration.eloquent || {};
825
825
  return generators(configuration);
826
826
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generathor-laravel",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Use this to create Eloquent models and CRUDs",
5
5
  "type": "module",
6
6
  "repository": {