Skip to content

Instantly share code, notes, and snippets.

@Ghostscypher
Last active September 7, 2021 12:40
Show Gist options
  • Save Ghostscypher/bb79a21629a7bde7dfb61812d69f2984 to your computer and use it in GitHub Desktop.
Save Ghostscypher/bb79a21629a7bde7dfb61812d69f2984 to your computer and use it in GitHub Desktop.
<?php
// config/broadcasting.config
return [
//....
'connections' => [
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => true, // true if using HTTPS else false
'host' => 'example.com', // Change this to your domain
'port' => 443, // Change this whatever port you are serving your website from
'scheme' => env('PUSHER_APP_SCHEME'),
'curl_options' => [
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => 0,
],
],
],
//....
],
//....
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment