Added security customizations: bet controller and hashing
This commit is contained in:
13
app/Helpers/SecurityHelper.php
Normal file
13
app/Helpers/SecurityHelper.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user