Software Developer
Software Developer

Reputation: 868

Why am I getting this error with laravel websocket library?

am trying to set up a web sockets server using laravel 5.7 and keep getting this error

Argument 2 passed to BeyondCode\LaravelWebSockets\Apps\App::__construct() must be of the type string, null given, called in /opt/lampp/htdocs/api.cs/vendor/beyondcode/laravel-websockets/src/Apps/ConfigAppProvider.php on line 63 screenshot missing

....i don't know what to do please help. I'm actually using this guide https://docs.beyondco.de/laravel-websockets/1.0/

Upvotes: 0

Views: 1565

Answers (3)

PHANTOM-X
PHANTOM-X

Reputation: 586

in my case I forgot to install composer require pusher/pusher-php-server

which resulted in so many errors while it was working just fine except for the errors, after installing all errors fixed

Upvotes: 0

Yvan Rugwe
Yvan Rugwe

Reputation: 634

Try clearing your cache: Run

php artisan config:cache

Or

php artisan optimize:clear

Upvotes: 1

dhonxean
dhonxean

Reputation: 11

After running migration use the following sequence of commands:

php artisan cache:clear 
php artisan config:clear
php artisan config:cache

Upvotes: 0

Related Questions