admin管理员组

文章数量:1401777

i am trying to deploy my laravel app which uses laravel reverb on railway but i keep getting an error related to pusher

                                                                               
  Pusher\Pusher::__construct(): Argument #1 ($auth_key) must be of type strin  
  g, null given, called in /var/www/html/vendor/laravel/framework/src/Illumin  
  ate/Broadcasting/BroadcastManager.php on line 341                            
                                                                               

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

i am trying to deploy my laravel app which uses laravel reverb on railway but i keep getting an error related to pusher

                                                                               
  Pusher\Pusher::__construct(): Argument #1 ($auth_key) must be of type strin  
  g, null given, called in /var/www/html/vendor/laravel/framework/src/Illumin  
  ate/Broadcasting/BroadcastManager.php on line 341                            
                                                                               

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Share Improve this question asked Mar 23 at 11:48 Oseahumen AgboifohOseahumen Agboifoh 1
Add a comment  | 

1 Answer 1

Reset to default 0

Make sure that you have installed Reverb and filled the Reverb variables in your .env file and that the broadcast driver is set to Reverb.

Install Reverb in Laravel

php artisan install:broadcasting

Configure .env file

BROADCAST_CONNECTION=reverb

REVERB_SERVER_HOST=127.0.0.1
REVERB_SERVER_PORT=8080
REVERB_APP_ID=app_id
REVERB_APP_KEY=your_key
REVERB_APP_SECRET=your_secret_key
REVERB_HOST=your_server
REVERB_PORT=80
REVERB_SCHEME=http

本文标签: phpDeploying Laravel app with reverb on railwayStack Overflow