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
Flarum
Core
AuthToken
setPayloadAttribute
Flarum\Core\AuthToken::setPayloadAttribute PHP Method
AuthToken Class Documentation
Show file
Open project: flarum/core
setPayloadAttribute()
public
method
Serialize the payload attribute to be stored in the database as JSON.
public
setPayloadAttribute
(
string
$value
)
$value
string
public function setPayloadAttribute($value) { $this->attributes['payload'] = json_encode($value); }
AuthToken
generate
getPayloadAttribute
scopeValidOrFail
setPayloadAttribute