We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a73861 commit 36c1f18Copy full SHA for 36c1f18
src/Illuminate/Foundation/Testing/Wormhole.php
@@ -102,6 +102,19 @@ public function weeks($callback = null)
102
return $this->handleCallback($callback);
103
}
104
105
+ /**
106
+ * Travel forward the given number of months.
107
+ *
108
+ * @param callable|null $callback
109
+ * @return mixed
110
+ */
111
+ public function months($callback = null)
112
+ {
113
+ Carbon::setTestNow(Carbon::now()->addMonths($this->value));
114
+
115
+ return $this->handleCallback($callback);
116
+ }
117
118
/**
119
* Travel forward the given number of years.
120
*
0 commit comments