['auth']], function() { Route::get('writeMessage', ['as'=>'writeMessage','uses'=>'SocketController@writeMessage']); Route::post('sendMessage', 'SocketController@sendMessage'); });