We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eec612f + 62648f8 commit 50fc049Copy full SHA for 50fc049
1 file changed
README.md
@@ -122,6 +122,11 @@ echo $cat->val('description', 'zh'); // you can specify a language
122
$schema->lang = 'zh';
123
echo $cat->val('name'); // 再见
124
125
+// You can also set a fallback language
126
+$schema->lang = 'zh';
127
+$schema->fallback_lang = 'en';
128
+echo $cat->val('description'); // English description if chinese description is missing
129
+
130
// The values function is useful for multivalue fields, it will return a laravel collection of values.
131
echo $cat->values('bullet_points')->implode('; ');
132
```
0 commit comments