Added security customizations: bet controller and hashing

This commit is contained in:
2025-09-03 19:29:42 +02:00
parent 5eae90294e
commit e812bb61a6
3 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Helpers;
use Illuminate\Support\Facades\Hash;
class SecurityHelper
{
public static function generateBetHash($userId, $amount, $gameId)
{
return Hash::make($userId . $amount . $gameId . now()->timestamp);
}
}