title: Laravel 5.1 pass data to socket.io and refresh page from others
body: <p>I trying to send data to socket.io server from controller. In this part of code:</p>
  
  <pre><code>          else {
                    $user = User::find(Auth::user()-&gt;id);
                    $user-&gt;decrement('points', $game-&gt;price);
                    $game-&gt;owner_team == 1? $team = 2 : $team = 1;
                    $game-&gt;update(['join_user_id'=&gt; Auth::user()-&gt;id, 'join_team' =&gt; $team, 'status' =&gt;1]);
                    // here send info about new player to socket.io server
                    return redirect('/user/game/'.$request-&gt;game_id);
                  }
  </code></pre>
  
  <p>I need to notify the server, to refresh the page for others user, when this part of code was executed. I need to know how send info from controller.</p>