From 93c065beb0a999399cc42bbb58c66f05010a81df Mon Sep 17 00:00:00 2001 From: Skyler Katz Date: Tue, 3 Dec 2019 13:52:51 -0800 Subject: [PATCH] Update readme to include flash example --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a8a6e0c9..d9571b84 100644 --- a/README.md +++ b/README.md @@ -223,7 +223,14 @@ The `key` defines the _type_ of statement to generate. Currently, Blueprint supp
flash
- 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.
+ 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. + + For example: + + ```yaml + flash: post.title + ``` +
render
Generates a `return view();` statement complete with a template reference and data.