Laravel.io
use Illuminate\Support\Facades\Redis;

Route::get('/', function () {


	$data =[

				'event'=>'UserSignedUp',

				'data'=>[

					'username'=>'yash'	

				]


];


	

Redis::publish('test-channel', json_encode($data));

return 'done';

//    return view('welcome');
});

Please note that all pasted data is publicly available.