File tree Expand file tree Collapse file tree 1 file changed +0
-50
lines changed
Expand file tree Collapse file tree 1 file changed +0
-50
lines changed Original file line number Diff line number Diff line change @@ -150,56 +150,6 @@ class ValidateInputStep implements FlowStep
150150}
151151` ` `
152152
153- # ## 4. `flowpipe:make-condition`
154-
155- Creates a new condition class for conditional steps.
156-
157- ` ` ` bash
158- php artisan flowpipe:make-condition {name}
159- ` ` `
160-
161- # ### Arguments
162-
163- - `name` : The name of the condition class to create
164-
165- # ### Options
166-
167- - `--namespace=App\Flowpipe\Conditions` : Custom namespace for the condition class
168- - `--force` : Overwrite existing condition class if it exists
169-
170- # ### Examples
171-
172- ` ` ` bash
173- # Create a basic condition
174- php artisan flowpipe:make-condition HasInventoryCondition
175-
176- # Create a condition with custom namespace
177- php artisan flowpipe:make-condition PaymentValidCondition --namespace=App\S ervices\P ayment\C onditions
178-
179- # Force overwrite existing condition
180- php artisan flowpipe:make-condition HasInventoryCondition --force
181- ` ` `
182-
183- # ### Generated Condition Class
184-
185- ` ` ` php
186- <?php
187-
188- namespace App\F lowpipe\C onditions;
189-
190- use Grazulex\L aravelFlowpipe\C ontracts\C ondition;
191- use Grazulex\L aravelFlowpipe\F lowContext;
192-
193- class HasInventoryCondition implements Condition
194- {
195- public function evaluate(FlowContext $context): bool
196- {
197- // Your condition logic here
198-
199- return true;
200- }
201- }
202- ` ` `
203153
204154# ## 5. `flowpipe:export`
205155
You can’t perform that action at this time.
0 commit comments