DOC Update readme example
This commit is contained in:
parent
25671da390
commit
946d92a7e8
|
@ -121,7 +121,7 @@ $field = StringTagField::create(
|
||||||
'Tags',
|
'Tags',
|
||||||
'Tags',
|
'Tags',
|
||||||
['one', 'two'],
|
['one', 'two'],
|
||||||
explode(',', $this->Tags)
|
explode(',', $this->Tags ?: '')
|
||||||
);
|
);
|
||||||
|
|
||||||
$field->setShouldLazyLoad(true); // tags should be lazy loaded
|
$field->setShouldLazyLoad(true); // tags should be lazy loaded
|
||||||
|
|
Loading…
Reference in New Issue