Skip to content

Commit d9288ee

Browse files
committed
as of Laravel 5.5, you must use dispatch_now if you want to get a result immediately as is needed in this scenario, otherwise you will get the job object
1 parent 5dfbed3 commit d9288ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
],
2828
"minimum-stability": "stable",
2929
"require": {
30-
"illuminate/support": "^5.0|^6.0"
30+
"illuminate/support": "^5.5|^6.0"
3131
},
3232
"extra": {
3333
"laravel": {

src/Console/TunnelerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TunnelerCommand extends Command {
1919

2020
public function handle(){
2121
try {
22-
$result = dispatch(new CreateTunnel());
22+
$result = dispatch_now(new CreateTunnel());
2323
}catch (\ErrorException $e){
2424
$this->error($e->getMessage());
2525
return 1;

0 commit comments

Comments
 (0)