commit 08-2025

This commit is contained in:
Kevin Adametz 2025-08-12 15:51:04 +02:00
parent 9b54eb0512
commit 02f2a4c23e
184 changed files with 31653 additions and 22327 deletions

View file

@ -13,7 +13,7 @@ class Util
public static function getToken()
{
return hash_hmac('sha256', str_random(40), config('app.key'));
return hash_hmac('sha256', Str::random(40), config('app.key'));
}
public static function uuidToken()
@ -127,7 +127,7 @@ class Util
return false;
}
public static function setUserHistoryValue($values = [], $identifier){
public static function setUserHistoryValue($values, $identifier){
if($user_history = self::getUserHistory($identifier)){
foreach ($values as $key=>$val){
$user_history->{$key} = $val;
@ -171,6 +171,13 @@ class Util
return false;
}
public static function isTestSystem(){
if(config('app.debug')){
return true;
}
return false;
}
public static function isPromotionUrl($debug = false){
if($debug && config('app.debug')){
return false;