Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
GenTux
Jwt
JwtToken
jsonSerialize
GenTux\Jwt\JwtToken::jsonSerialize PHP Method
JwtToken Class Documentation
Show file
Open project: generationtux/jwt-artisan
jsonSerialize()
public
method
Specify data which should be serialized to JSON
See link:
http://php.net/manual/en/jsonserializable.jsonserialize.php
Since:
5.4.0
public
jsonSerialize
( ) :
mixed
return
mixed
data which can be serialized by
json_encode
, which is a value of any type other than a resource.
public function jsonSerialize() { return $this->token(); }
JwtToken
__construct
__toString
algorithm
createToken
jsonSerialize
payload
queryPayload
secret
setAlgorithm
setSecret
setToken
token
validate
validateOrFail