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 c607db9 commit f79b684Copy full SHA for f79b684
src/Illuminate/Foundation/Bus/DispatchesJobs.php
@@ -22,9 +22,24 @@ protected function dispatch($job)
22
*
23
* @param mixed $job
24
* @return mixed
25
+ *
26
+ * @deprecated Will be removed in a future Laravel version.
27
*/
28
public function dispatchNow($job)
29
{
30
return app(Dispatcher::class)->dispatchNow($job);
31
}
32
+
33
+ /**
34
+ * Dispatch a command to its appropriate handler in the current process.
35
36
+ * Queueable jobs will be dispatched to the "sync" queue.
37
38
+ * @param mixed $job
39
+ * @return mixed
40
+ */
41
+ public function dispatchSync($job)
42
+ {
43
+ return app(Dispatcher::class)->dispatchSync($job);
44
+ }
45
0 commit comments