Merge pull request #269 from creative-commoners/pulls/3/doc

DOC Update readme example
This commit is contained in:
Guy Sartorelli 2023-11-20 17:40:56 +13:00 committed by GitHub
commit be3100d249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ $field = StringTagField::create(
'Tags',
'Tags',
['one', 'two'],
explode(',', $this->Tags)
explode(',', $this->Tags ?: '')
);
$field->setShouldLazyLoad(true); // tags should be lazy loaded