Add middleware to an event

I’ve been trying to make modifications to an event handler to intercept it before it would normally get sent to the real event handler function. Example: var ws = new WebSocket(“/”); ws….

Using Laravel Auth middleware

Laravel 5.1 really had minimal documentation.. I need clear idea about how to protect routes using Auth middileware.. Documentation tells to add “middleware” => “auth” parameter to route. or can do …