I'am using Laravel 5.5 with echo for an admin panel , the main guard (web) is related to Admin class , the private channel name that i want to get is Admin.1 ,
The problem is when i change the channel name from
Echo.private('App.User.' + this.userid)
to
Echo.private('App.Admin.' + this.userid)
it gets me this error
broadcasting/auth 500 (Internal Server Error)
what i tried is :
i put this
Broadcast::routes(['middleware' => [ 'api', 'web','auth' ] ]);
in web.php and api.php and BroadcastServiceProvider.php put it doesn't seem to work i also tried this soltion How to define or pass auth guard for broadcast authentication routes instead of default auth guard?