+ Homparty Part 1
This commit is contained in:
parent
1f77fc7ef8
commit
436f550117
40 changed files with 2027 additions and 58 deletions
|
|
@ -2,6 +2,7 @@
|
|||
namespace App\Services;
|
||||
|
||||
use App\Models\UserHistory;
|
||||
use Illuminate\Support\Str;
|
||||
use Yard;
|
||||
|
||||
class Util
|
||||
|
|
@ -16,6 +17,17 @@ class Util
|
|||
return hash_hmac('sha256', str_random(40), config('app.key'));
|
||||
}
|
||||
|
||||
public static function uuidToken()
|
||||
{
|
||||
$uuid = (string) Str::uuid();
|
||||
$e_uuid = explode("-", $uuid);
|
||||
if(isset($e_uuid[0]) && $e_uuid[1]){
|
||||
return $e_uuid[0]."-".$e_uuid[1];
|
||||
|
||||
}
|
||||
return $uuid;
|
||||
}
|
||||
|
||||
public static function formatDate(){
|
||||
if(\App::getLocale() === "en"){
|
||||
return 'yyyy-mm-dd';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue