Skip to content

Commit 6ca97cd

Browse files
Merge pull request #29 from skylerkatz/patch-1
Update readme to include flash example
2 parents 8e4aefd + 93c065b commit 6ca97cd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,14 @@ The `key` defines the _type_ of statement to generate. Currently, Blueprint supp
223223
<dt>flash</dt>
224224
<dd>
225225

226-
Generates a statement to [flash data](https://laravel.com/docs/session#flash-data) to the session. Blueprint will use the `value` as the session key and expands the reference as the session value.</dd>
226+
Generates a statement to [flash data](https://laravel.com/docs/session#flash-data) to the session. Blueprint will use the `value` as the session key and expands the reference as the session value.
227+
228+
For example:
229+
230+
```yaml
231+
flash: post.title
232+
```
233+
</dd>
227234

228235
<dt>render</dt>
229236
<dd>Generates a `return view();` statement complete with a template reference and data.

0 commit comments

Comments
 (0)