diff --git a/src/Models/Flow.php b/src/Models/Flow.php index b111845..f19c0eb 100644 --- a/src/Models/Flow.php +++ b/src/Models/Flow.php @@ -44,4 +44,15 @@ public function flowable(): MorphTo { return $this->morphTo(); } + + /** + * Renews the flow + * @return void + */ + public function renew(): void + { + $flowable = $this->flowable; + $this->delete(); + $flowable->flows()->create(); + } }