{"action":"created","issue":{"url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/29","repository_url":"https://api.github.com/repos/beyondcode/laravel-websockets","labels_url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/29/comments","events_url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/29/events","html_url":"https://github.com/beyondcode/laravel-websockets/issues/29","id":388188839,"node_id":"MDU6SXNzdWUzODgxODg4Mzk=","number":29,"title":"Not working with Laravel Valet","user":{"login":"ronfloraxCT","id":17110603,"node_id":"MDQ6VXNlcjE3MTEwNjAz","avatar_url":"https://avatars3.githubusercontent.com/u/17110603?v=4","gravatar_id":"","url":"https://api.github.com/users/ronfloraxCT","html_url":"https://github.com/ronfloraxCT","followers_url":"https://api.github.com/users/ronfloraxCT/followers","following_url":"https://api.github.com/users/ronfloraxCT/following{/other_user}","gists_url":"https://api.github.com/users/ronfloraxCT/gists{/gist_id}","starred_url":"https://api.github.com/users/ronfloraxCT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronfloraxCT/subscriptions","organizations_url":"https://api.github.com/users/ronfloraxCT/orgs","repos_url":"https://api.github.com/users/ronfloraxCT/repos","events_url":"https://api.github.com/users/ronfloraxCT/events{/privacy}","received_events_url":"https://api.github.com/users/ronfloraxCT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-12-06T12:18:20Z","updated_at":"2018-12-10T19:41:15Z","closed_at":null,"author_association":"NONE","body":"Thank you for making this package. It comes at the perfect time for me, I'm just starting to use websockets on a project I've got running.\r\n\r\nIt might be an oversight on my part, but I can't get this to work with Laravel Valet. Using Pusher with Laravel's default config works, but as soon as I make the necessary changes in the config and try to broadcast an event I get an empty `Illuminate\\Broadcasting\\BroadcastException`.\r\n\r\nconfig/broadcasting.php\r\n```\r\n'pusher' => [\r\n            'driver' => 'pusher',\r\n            'key' => env('PUSHER_APP_KEY'),\r\n            'secret' => env('PUSHER_APP_SECRET'),\r\n            'app_id' => env('PUSHER_APP_ID'),\r\n            'options' => [\r\n                'cluster' => env('PUSHER_APP_CLUSTER'),\r\n                'host' => '127.0.0.1',\r\n                'port' => 6001,\r\n                'scheme' => 'https',\r\n                'curl_options' => [\r\n                    CURLOPT_SSL_VERIFYHOST => 0,\r\n                    CURLOPT_SSL_VERIFYPEER => 0,\r\n                ]\r\n            ],\r\n        ],\r\n```\r\n\r\nconfig/websockets.php\r\n```\r\n'apps' => [\r\n        [\r\n            'id' => env('PUSHER_APP_ID'),\r\n            'name' => env('APP_NAME'),\r\n            'key' => env('PUSHER_APP_KEY'),\r\n            'secret' => env('PUSHER_APP_SECRET'),\r\n            'enable_client_messages' => false,\r\n            'enable_statistics' => true,\r\n        ],\r\n    ],\r\n\r\n    'app_provider' => BeyondCode\\LaravelWebSockets\\Apps\\ConfigAppProvider::class,\r\n\r\n    'allowed_origins' => [\r\n        //\r\n    ],\r\n\r\n    'max_request_size_in_kb' => 250,\r\n\r\n    'path' => 'laravel-websockets',\r\n\r\n    'statistics' => [\r\n        'model' => \\BeyondCode\\LaravelWebSockets\\Statistics\\Models\\WebSocketsStatisticsEntry::class,\r\n\r\n        'interval_in_seconds' => 60,\r\n\r\n        'delete_statistics_older_than_days' => 60,\r\n    ],\r\n\r\n    'ssl' => [\r\n        'local_cert' => '/Users/ronflorax/.config/valet/Certificates/snookerscores.test.crt',\r\n\r\n        'local_pk' => '/Users/ronflorax/.config/valet/Certificates/snookerscores.test.key',\r\n\r\n        'passphrase' => null,\r\n\r\n        'verify_peer' => false,\r\n    ],\r\n```"},"comment":{"url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/comments/445945748","html_url":"https://github.com/beyondcode/laravel-websockets/issues/29#issuecomment-445945748","issue_url":"https://api.github.com/repos/beyondcode/laravel-websockets/issues/29","id":445945748,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTk0NTc0OA==","user":{"login":"vesper8","id":816028,"node_id":"MDQ6VXNlcjgxNjAyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/816028?v=4","gravatar_id":"","url":"https://api.github.com/users/vesper8","html_url":"https://github.com/vesper8","followers_url":"https://api.github.com/users/vesper8/followers","following_url":"https://api.github.com/users/vesper8/following{/other_user}","gists_url":"https://api.github.com/users/vesper8/gists{/gist_id}","starred_url":"https://api.github.com/users/vesper8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vesper8/subscriptions","organizations_url":"https://api.github.com/users/vesper8/orgs","repos_url":"https://api.github.com/users/vesper8/repos","events_url":"https://api.github.com/users/vesper8/events{/privacy}","received_events_url":"https://api.github.com/users/vesper8/received_events","type":"User","site_admin":false},"created_at":"2018-12-10T19:41:15Z","updated_at":"2018-12-10T19:41:15Z","author_association":"NONE","body":"@ronfloraxCT @Livijn \r\n\r\nI was having trouble getting this to work with Laravel Valet and now everything works fine. The demo works fine and I also have it working with a standalone websocket app that is now handling web sockets for 5 of my apps (this is all on my macbook dev using Laravel Valet with --secure\r\n\r\nMy thread here might prove useful https://github.com/beyondcode/laravel-websockets/issues/8\r\n\r\nI suggest you take a step back and try to get the demo working with Laravel Valet first. Once you have that working then you can try to get your own apps working.\r\n\r\nAlso I think @anabeto93's response has nothing to do with Valet.. correct me if I'm wrong but when you use Homestead you don't use Valet at all."}}
{"actor":{"display_login":"vesper8"}}