Skip to content

Commit 3a0ed5b

Browse files
[6.x] Documentation Changes for Blueprints, Index, and Readme (#411)
* Added Note to call attention to the accessor being defined as a public function, which differs from the Laravel docs example. * Changed products to product in the example to reflect the singular nature of the handle for other resources used in the documentation. * Changed products to product in the example to reflect the singular nature of the handle for other resources used in the documentation. * Adjust note --------- Co-authored-by: Duncan McClean <duncan@duncanmcclean.com>
1 parent 94b6d6d commit 3a0ed5b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ return [
4949
In addition to front-end routing, you may also use Runway's tag to loop through your models and display the results. The tag supports filtering, using Eloquent scopes and sorting.
5050

5151
```antlers
52-
{{ runway:products }}
52+
{{ runway:product }}
5353
<h2>{{ name }}</h2>
5454
<p>Price: {{ price }}</p>
55-
{{ /runway:products }}
55+
{{ /runway:product }}
5656
```
5757

5858
- [Review documentation](https://runway.duncanmcclean.com/templating)

docs/blueprints.md

+4
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,7 @@ public function fullName(): Attribute
141141
Then, in your user blueprint, you'd set the field's visibility to "Computed":
142142

143143
![Field's visibility set to computed](/img/runway/field-visibility-computed.png)
144+
145+
:::note Note!
146+
It's worth noting, Runway requires any accessors to be `public` functions, otherwise the attributes won't be augmentable.
147+
:::

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ return [
3232
In addition to front-end routing, you may also use Runway's tag to loop through your models and display the results. The tag supports filtering, using Eloquent scopes and sorting.
3333

3434
```antlers
35-
{{ runway:products }}
35+
{{ runway:product }}
3636
<h2>{{ name }}</h2>
3737
<p>Price: {{ price }}</p>
38-
{{ /runway:products }}
38+
{{ /runway:product }}
3939
```
4040

4141
- [Review documentation](https://runway.duncanmcclean.com/templating)

0 commit comments

Comments
 (0)