8000
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.
2 parents ec49edd + a340a6a commit 0e438d9Copy full SHA for 0e438d9
src/Routing/ProvidesConvenienceMethods.php
@@ -165,6 +165,18 @@ public function dispatch($job)
165
return app('Illuminate\Contracts\Bus\Dispatcher')->dispatch($job);
166
}
167
168
+ /**
169
+ * Dispatch a command to its appropriate handler in the current process.
170
+ *
171
+ * @param mixed $job
172
+ * @param mixed $handler
173
+ * @return mixed
174
+ */
175
+ public function dispatchNow($job, $handler = null)
176
+ {
177
+ return app('Illuminate\Contracts\Bus\Dispatcher')->dispatchNow($job, $handler);
178
+ }
179
+
180
/**
181
* Get a validation factory instance.
182
*
0 commit comments