Skip to content

Commit 4c41e75

Browse files
tudor-svifox
authored andcommitted
fix docs buidling errors
1 parent 97b1773 commit 4c41e75

11 files changed

Lines changed: 26 additions & 24 deletions

docs/content/1_docs/6_relations/01_belongs-to-many.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ In the **Partner** migration we add a relational table that we will use for our
3939
{
4040
"file": "../../../../examples/portfolio/database/migrations/2022_04_01_071748_create_partners_tables.php",
4141
"collapseAll": "",
42-
"focusMethods": "up",
42+
"focusMethods": ["up"],
4343
"focusImports": ["App\\Models\\Partner", "App\\Models\\Project"],
4444
"diffImports": ["App\\Models\\Partner", "App\\Models\\Project"],
4545
"diffInMethod": {
@@ -66,7 +66,7 @@ Now with the migration setup we can set up our relation in the `Project` model:
6666
{
6767
"file": "../../../../examples/portfolio/app/Models/Project.php",
6868
"collapseAll": "",
69-
"focusMethods": "partners"
69+
"focusMethods": ["partners"]
7070
}
7171
```
7272

@@ -84,7 +84,7 @@ To expose the relation in the ui, we will use an inline repeater. We will name t
8484
"collapseAll": "",
8585
"focusImports": ["A17\\Twill\\Services\\Forms\\InlineRepeater"],
8686
"diffImports": ["A17\\Twill\\Services\\Forms\\InlineRepeater"],
87-
"focusMethods": "getForm",
87+
"focusMethods": ["getForm"],
8888
"diffInMethod": {
8989
"method": "getForm",
9090
"start": 6,

docs/content/1_docs/6_relations/02_morph-many.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The `_id` will hold the model id we are referencing. `_type` will hold the type
2222
{
2323
"file": "../../../../examples/portfolio/database/migrations/2022_04_06_070334_create_comments_tables.php",
2424
"collapseAll": "",
25-
"focusMethods": "up",
25+
"focusMethods": ["up"],
2626
"diffInMethod": {
2727
"method": "up",
2828
"start": 5,
@@ -43,7 +43,7 @@ Now that our migration is in place we can move onward to our model setup. Here w
4343
{
4444
"file": "../../../../examples/portfolio/app/Models/Comment.php",
4545
"collapseAll": "",
46-
"focusMethods": "commentable"
46+
"focusMethods": ["commentable"]
4747
}
4848
```
4949

@@ -61,7 +61,7 @@ In the example we allow comments on `Partners` and `Projects`, so what we need t
6161
{
6262
"file": "../../../../examples/portfolio/app/Models/Partner.php",
6363
"collapseAll": "",
64-
"focusMethods": "comments"
64+
"focusMethods": ["comments"]
6565
}
6666
```
6767

@@ -73,7 +73,7 @@ In the example we allow comments on `Partners` and `Projects`, so what we need t
7373
{
7474
"file": "../../../../examples/portfolio/app/Models/Project.php",
7575
"collapseAll": "",
76-
"focusMethods": "comments"
76+
"focusMethods": ["comments"]
7777
}
7878
```
7979

docs/content/1_docs/6_relations/03_one-to-many.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ In the **Link** migration we add a column to hold the `project_id` that we are c
2727
```phptorch
2828
{
2929
"file": "../../../../examples/portfolio/database/migrations/2022_05_30_074255_create_links_tables.php",
30-
"focusMethods": "up",
30+
"focusMethods": ["up"],
3131
"diffInMethod": {
3232
"method": "up",
3333
"start": 5,
@@ -48,7 +48,7 @@ Now with the migration setup we can set up our relation in the `Project` model:
4848
{
4949
"file": "../../../../examples/portfolio/app/Models/Project.php",
5050
"collapseAll": "",
51-
"focusMethods": "links"
51+
"focusMethods": ["links"]
5252
}
5353
```
5454

@@ -66,7 +66,7 @@ In our project form we can now create an inline repeater.
6666
"collapseAll": "",
6767
"focusImports": ["A17\\Twill\\Services\\Forms\\InlineRepeater"],
6868
"diffImports": ["A17\\Twill\\Services\\Forms\\InlineRepeater"],
69-
"focusMethods": "getForm",
69+
"focusMethods": ["getForm"],
7070
"diffInMethod": {
7171
"method": "getForm",
7272
"start": 23,

docs/content/2_guides/1_page-builder-with-blade/10_setup-the-frontpage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ We will go back to the `AppServiceProvider` that we used before and register the
1818
```phptorch
1919
{
2020
"collapseAll": "",
21-
"focusMethods": "boot",
21+
"focusMethods": ["boot"],
2222
"diffInMethod": {
2323
"method": "boot",
2424
"start": 7,
@@ -105,7 +105,7 @@ Then we add the `home` method in the `PageDisplayController` which will get the
105105
```phptorch
106106
{
107107
"collapseAll": "",
108-
"focusMethods": "home",
108+
"focusMethods": ["home"],
109109
"diffMethods": "home"
110110
}
111111
##CODE##

docs/content/2_guides/1_page-builder-with-blade/5_configuring-the-page-module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ always have a crop config for your field name!
209209
```phptorch
210210
{
211211
"collapseMethods": null,
212-
"focusMethods": "getForm",
212+
"focusMethods": ["getForm"],
213213
"diffImports": "A17\\Twill\\Services\\Forms\\Fields\\Medias",
214214
"focusImports": "A17\\Twill\\Services\\Forms\\Fields\\Medias",
215215
"diffInMethod": {
@@ -274,7 +274,7 @@ method.
274274
```phptorch
275275
{
276276
"collapseMethods": null,
277-
"focusMethods": "getForm",
277+
"focusMethods": ["getForm"],
278278
"diffImports": "A17\\Twill\\Services\\Forms\\Fields\\BlockEditor",
279279
"focusImports": "A17\\Twill\\Services\\Forms\\Fields\\BlockEditor",
280280
"diffInMethod": {

docs/content/2_guides/1_page-builder-with-blade/8_building-a-front-end.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ We will dive back into the `PageDisplayController` that we created before and we
133133

134134
```phptorch
135135
{
136-
"focusMethods": "show"
136+
"focusMethods": ["show"]
137137
}
138138
##CODE##
139139
<?php

docs/content/2_guides/1_page-builder-with-blade/9_adding-navigation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ change the title to make a bit more sense.
2323
```phptorch
2424
{
2525
"collapseAll": "",
26-
"focusMethods": "boot",
26+
"focusMethods": ["boot"],
2727
"diffInMethod": {
2828
"method": "boot",
2929
"start": 4,
@@ -242,7 +242,7 @@ In our menu link module controller we now add the form field:
242242
"collapseAll": "",
243243
"diffImports": "A17\\Twill\\Services\\Forms\\Fields\\Browser",
244244
"focusImports": "A17\\Twill\\Services\\Forms\\Fields\\Browser",
245-
"focusMethods": "getForm",
245+
"focusMethods": ["getForm"],
246246
"diffInMethod": {
247247
"method": "getForm",
248248
"start": 3,

docs/content/2_guides/2_building_a_multilingual_site_with_twill_and_laravel_localization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ model to find the appropriate article by slug:
226226
```phptorch
227227
{
228228
"file": "./building_a_multilingual_site_with_twill_and_laravel_localization/Article.php",
229-
"focusMethods": "resolveRouteBinding"
229+
"focusMethods": ["resolveRouteBinding"]
230230
}
231231
```
232232

@@ -332,7 +332,7 @@ the `LocalizedUrlRoutable` interface from Laravel Localization in our model. For
332332
```phptorch
333333
{
334334
"file": "./building_a_multilingual_site_with_twill_and_laravel_localization/Article.php",
335-
"focusMethods": "getLocalizedRouteKey"
335+
"focusMethods": ["getLocalizedRouteKey"]
336336
}
337337
```
338338

docs/content/2_guides/3_adding-fields-to-the-create-modal.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In our module controller we can override the `getCreateForm` method and add the
2121

2222
```phptorch
2323
{
24-
"focusMethods": "getCreateForm"
24+
"focusMethods": ["getCreateForm"]
2525
}
2626
##CODE##
2727
<?php
@@ -178,6 +178,7 @@ In our module controller we can override the `indexData` to remove publish switc
178178
:::#filename:::
179179

180180
```phptorch
181+
{}
181182
##CODE##
182183
<?php
183184
@@ -220,6 +221,7 @@ If we also want to make all languages active by default, we can override `prepar
220221
:::#filename:::
221222

222223
```phptorch
224+
{}
223225
##CODE##
224226
<?php
225227

docs/content/2_guides/6_manage_frontend_user_profiles_from_twill.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Update the generated migration to add the required fields:
3333
```phptorch
3434
{
3535
"file": "./manage_frontend_user_profiles_from_twill/2021_08_01_204153_create_profiles_tables.php",
36-
"focusMethods": "up"
36+
"focusMethods": ["up"]
3737
}
3838
```
3939

@@ -54,7 +54,7 @@ Edit the fillable fields to match the new schema and add the `Profile > User` re
5454
```phptorch
5555
{
5656
"file": "./manage_frontend_user_profiles_from_twill/Profile.php",
57-
"focusMethods": "user",
57+
"focusMethods": ["user"],
5858
"focusProperties": "fillable"
5959
}
6060
```

0 commit comments

Comments
 (0)