Create Input Hydrate ​
Generate a Hydrate class that defines the input schema for a module's form fields.
Command Information ​
- Signature:
modularous:make:input:hydrate <name> - Aliases:
modularous:create:input:hydrate,mod:c:input:hydrate - Category: Generators
Arguments ​
| Argument | Required | Description |
|---|---|---|
name | Yes | Name of the Hydrate class (e.g. Product → generates ProductHydrate) |
What It Does ​
Creates {StudlyName}Hydrate.php from the input-hydrate.stub template. The generated class defines the input schema — field types, labels, validation rules, and connector sources — used by FormBase to render the module's create/edit form.
Examples ​
bash
# Generate ProductHydrate
php artisan modularous:make:input:hydrate Product
# Short alias
php artisan mod:c:input:hydrate ProductOutput ​
Creates the Hydrate class at the path configured for the target module, typically:
Modules/{Module}/Http/Controllers/Hydrates/{Name}Hydrate.phpRelated ​
- make:module — generates the Hydrate as part of a full module scaffold
- Hydrates reference — full schema contract for Hydrate classes