I'm using Laravel to build a messaging system, so that's why i'm using events broadcasting, also i'm using passport for authentication.
I changed the BroadcastServiceProvider
boot()
method by setting the middleware auth:api
Also i'm adding Authorization : Bearer mytoken in my postman post request.
public function boot()
{
Broadcast::routes(['middleware' => ['auth:api']]);
require base_path('routes/channels.php');
}
My problem is when i want to try to authenticate on myhost//broadcasting/auth
I get this response:
403 forbidden