Tokenize
class Tokenize (View source)
Methods
static array|null
csrf(int|null $time = null)
Get a csrf token generate
static bool
makeCsrfToken(int|null $time = null)
Csrf token creator
static string
make()
GGenerate an encrypted key
static bool
verify(string $token, bool $strict = false)
Check if csrf token is valid
static bool
csrfExpired(int|null $time = null)
Check if the token expires
static void
clear()
Destroy the token
Details
static array|null
csrf(int|null $time = null)
Get a csrf token generate
static bool
makeCsrfToken(int|null $time = null)
Csrf token creator
static string
make()
GGenerate an encrypted key
static bool
verify(string $token, bool $strict = false)
Check if csrf token is valid
static bool
csrfExpired(int|null $time = null)
Check if the token expires
static void
clear()
Destroy the token