@@ -37,7 +37,7 @@ call `lucid`:
37
37
export PATH="./vendor/bin:$PATH"
38
38
```
39
39
40
- For a list of all the commands that are available run ` lucid ` or see the [ CLI Reference] ( #cli-reference ) .
40
+ For a list of all the commands that are available run ` lucid ` or see the [ CLI Reference] ( https://github.com/lucid-architecture/laravel-console ) .
41
41
42
42
#### Launching the Interactive Console (UI)
43
43
@@ -87,7 +87,7 @@ One more step is required for Laravel to recognise the service we just created.
87
87
88
88
##### CLI
89
89
```
90
- lucid make:feature api ListUsers
90
+ lucid make:feature ListUsers api
91
91
```
92
92
93
93
##### UI
@@ -100,7 +100,7 @@ This project ships with a couple of jobs that can be found in their correspondin
100
100
101
101
##### CLI
102
102
```
103
- lucid make:job user GetUsers
103
+ lucid make:job GetUsers user
104
104
```
105
105
106
106
##### UI
@@ -136,15 +136,15 @@ public function handle(Request $request)
136
136
```
137
137
138
138
The ` RespondWithJsonJob ` is one of the Jobs that were shipped with this project, it lives in the ` Http ` domain and is
139
- used to respond to a request in JSON format.
139
+ used to respond to a request in structured JSON format.
140
140
141
- ##### Expose The Feature
141
+ ##### Serve The Feature
142
142
To be able to serve that Feature we need to create a route and a controller that does so.
143
143
144
144
Generate a plain controller with the following command
145
145
146
146
```
147
- lucid make:controller api user --plain
147
+ lucid make:controller user api --plain
148
148
```
149
149
150
150
Add the ` get ` method to it:
@@ -169,13 +169,3 @@ Route::get('/users', 'UserController@get');
169
169
```
170
170
171
171
Now if you visit ` /api/users ` you should see the JSON structure.
172
-
173
- ## CLI Reference
174
- Following are the commands available through the ` Lucid ` CLI.
175
-
176
- - ` make:service [name] ` : Generate a new Service with the given name
177
- - ` make:feature [service] [feature title] ` : Generate a new Feature in the given Service
178
- - ` make:job [domain] [job title] ` : Generate a new Job in the specified Domain (non-existing domains will be created)
179
- - ` make:controller [service] [controller name] ` : Generate a new Controller in the given Service
180
- - ` list:services ` : List the existing Services
181
- - ` list:features ` : List the existing Features, organised by Service
0 commit comments