Appearance
FlowBuilder Make Commands
Available Commands
1. make:fb-node
Creates a new FlowBuilder node (BaseNode or Trigger).
Syntax:
bash
php artisan make:fb-node {name} {--module=} {--trigger}
Examples:
bash
# Create an Action node
php artisan make:fb-node Python --module=DynamicReports
# Create a Trigger node
php artisan make:fb-node Python --module=DynamicReports --trigger
# Interactive mode (will ask for module)
php artisan make:fb-node Python
2. make:fb-variable
Creates a new FlowBuilder variable.
Syntax:
bash
php artisan make:fb-variable {name} {--module=}
Examples:
bash
# Create a variable
php artisan make:fb-variable UserEmail --module=DynamicReports
# Interactive mode
php artisan make:fb-variable UserEmail
Generated files:
- Variables:
app/Variables/{Name}.php
3. make:fb-validation-rule
Creates a new FlowBuilder validation rule.
Syntax:
bash
php artisan make:fb-validation-rule {name} {--module=}
Examples:
bash
# Create a validation rule
php artisan make:fb-validation-rule EmailFieldValidation --module=DynamicReports
# Interactive mode
php artisan make:fb-validation-rule EmailFieldValidation
Generated files:
- Validation Rules:
app/ValidationRules/{Name}.php
Registration
After creating components, remember to register them in your module's service provider:
Nodes
php
Node::register(\Modules\YourModule\Nodes\Actions\YourNode::class);
Variables
php
Variable::register(\Modules\YourModule\Variables\YourVariable::class);
Validation Rules
php
FlowValidator::register(\Modules\YourModule\ValidationRules\YourRule::class);