public function WinUser(Request $request)
{
$input = $request->all();
$iu = InfoUser::join('bets AS b','b.user','=','info_users.user_id')
->where([
['b.id_match','=',$request->id_match],
['b.name','=',$request->win]
])
->update(['info_users.balans' => 'b.summa'*$request->koof]);
return redirect()->route('match.index');
}
DB::table('role__users')
->where('id', $request->user_id)
->update(['role_id' => $request->role_id]);