reconstruction of the project
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Libraries;
|
||||
|
||||
class StaffTimeOffLinkService
|
||||
{
|
||||
public function createToken(array $payload): string
|
||||
{
|
||||
$json = json_encode($payload);
|
||||
if ($json === false) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return rtrim(strtr(base64_encode($json), '+/', '-_'), '=');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user