Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Mongolid
Model
Attributes
setAttribute
Mongolid\Model\Attributes::setAttribute PHP Method
Attributes Trait Documentation
显示文件
Open project: leroy-merlin-br/mongolid
setAttribute()
public
method
Set a given attribute on the model.
public
setAttribute
(
string
$key
,
mixed
$value
) :
void
$key
string
Name of the attribute to be set.
$value
mixed
Value to be set.
return
void
public function setAttribute(string $key, $value) { $this->attributes[$key] = $value; }
Attributes
__get
__isset
__set
__unset
buildMutatorMethod
cleanAttribute
fill
getAttribute
getAttributes
hasMutatorMethod
setAttribute
syncOriginalAttributes
toArray