@famgia/omnify-laravel 0.0.71 → 0.0.73

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.
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  schemaToBlueprint,
25
25
  toColumnName,
26
26
  toTableName
27
- } from "./chunk-4KBDUQFK.js";
27
+ } from "./chunk-FEHKJQMT.js";
28
28
  export {
29
29
  formatColumnMethod,
30
30
  formatForeignKey,
package/dist/plugin.cjs CHANGED
@@ -2439,6 +2439,9 @@ function generateFactory(schema, schemas, options, stubContent) {
2439
2439
  if (schema.kind === "enum") {
2440
2440
  return null;
2441
2441
  }
2442
+ if (schema.options?.hidden) {
2443
+ return null;
2444
+ }
2442
2445
  const modelName = toPascalCase(schema.name);
2443
2446
  const factoryName = `${modelName}Factory`;
2444
2447
  const attributes = [];