Skip to content

Commit be75818

Browse files
committed
Structure YAML with section contexts
1 parent 0c5f292 commit be75818

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,27 @@ A new open-source tool being developed to provide rapidly generate multiple Lara
55

66
**Example Syntax**
77
```yaml
8-
Post:
9-
id
10-
title: string
11-
content: bigtext
12-
published_at: nullable timestamp
13-
timestamps
8+
models:
9+
Post:
10+
id
11+
title: string
12+
content: bigtext
13+
published_at: nullable timestamp
14+
timestamps
1415

15-
PostController:
16-
index:
17-
query: all posts
18-
render: post.index with posts
16+
controllers:
17+
PostController:
18+
index:
19+
query: all posts
20+
render: post.index with posts
1921

20-
store:
21-
validate: title, content
22-
save: post
23-
send: ReviewNotifcation to post.author
24-
queue: SyncMedia
25-
flash: post.title
26-
redirect: post.index
22+
store:
23+
validate: title, content
24+
save: post
25+
send: ReviewNotifcation to post.author
26+
queue: SyncMedia
27+
flash: post.title
28+
redirect: post.index
2729
```
2830
2931
**Generated Components**

0 commit comments

Comments
 (0)