Skip to content

Commit

Permalink
listener update
Browse files Browse the repository at this point in the history
  • Loading branch information
psalmsin1759 committed Sep 23, 2023
1 parent 48a23e7 commit 0a40f15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ curl -s "https://laravel.build/laravel-pubsub" | bash

<img src="screenshots/permission.png" alt="Permission" />
<img src="screenshots/subscription.png" alt="Subscription" />

## Step 3: Configure Laravel Environment

Edit the .env file in your project root and add the following lines to set up your Google Cloud Pub/Sub configuration:
Expand Down
9 changes: 0 additions & 9 deletions app/Listeners/SendWelcomeEmailListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,5 @@ public function handle(SendWelcomeEmail $event)
$topic->publish(['data' => json_encode($message)]);


/*
$subscriptionName = env('PUBSUB_SUBSCRIPTION_NAME');
$subscription = $pubsub->subscription($subscriptionName);
$message = [
'email' => $event->email,
'name' => $event->name,
];
$subscription->publish(['data' => json_encode($message)]); */
}
}

0 comments on commit 0a40f15

Please sign in to comment.