Skip to content

Commit 9d39dcf

Browse files
authored
Update 2023-08-18-microservice-communication-with-laravel-workflow.md
1 parent d8586d6 commit 9d39dcf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

blog/2023-08-18-microservice-communication-with-laravel-workflow.md

+3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ class CreateWorkflowsTable extends Migration
117117
```php
118118
// app/Models/StoredWorkflow.php
119119
namespace App\Models;
120+
120121
use Workflow\Models\StoredWorkflow as BaseStoredWorkflow;
121122

122123
class StoredWorkflow extends BaseStoredWorkflow
@@ -155,6 +156,7 @@ class MyWorkflow extends Workflow
155156
{
156157
public $connection = 'shared';
157158
public $queue = 'workflow';
159+
158160
public function execute($name)
159161
{
160162
yield ActivityStub::make(MyActivity::class, $name);
@@ -178,6 +180,7 @@ class MyActivity extends Activity
178180
{
179181
public $connection = 'shared';
180182
public $queue = 'activity';
183+
181184
public function execute($name)
182185
{
183186
return "Hello, {$name}!";

0 commit comments

Comments
 (0)