Skip to content

Commit 56477d1

Browse files
authored
Tidy artisan commands (#2488)
* Remove deploy:public_disk task Redundant since this can be achieved with the `artisan:storage:link` task since 5.3. 5.2 support was dropped in June 2016 so it is safe to stop supporting it ourselves. * Remove publish artisan commands These commands are made to generate some code that should then be committed and pushed. These should never be needed directly in production. * Add and rename artisan tasks * Refactor artisan command registration * Revert "Refactor artisan command registration" Doesn't work nicely with docgen :sob: * Update laravel.md
1 parent b5721b8 commit 56477d1

File tree

2 files changed

+190
-129
lines changed

2 files changed

+190
-129
lines changed

docs/recipe/laravel.md

Lines changed: 107 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,40 @@
1717
* [`log_files`](#log_files)
1818
* [`laravel_version`](#laravel_version)
1919
* Tasks
20-
* [`artisan:up`](#artisanup) — Disable maintenance mode
21-
* [`artisan:down`](#artisandown) — Enable maintenance mode
22-
* [`artisan:migrate`](#artisanmigrate) — Execute artisan migrate
23-
* [`artisan:migrate:fresh`](#artisanmigratefresh) — Execute artisan migrate:fresh
24-
* [`artisan:migrate:rollback`](#artisanmigraterollback) — Execute artisan migrate:rollback
25-
* [`artisan:migrate:status`](#artisanmigratestatus) — Execute artisan migrate:status
26-
* [`artisan:db:seed`](#artisandbseed) — Execute artisan db:seed
27-
* [`artisan:cache:clear`](#artisancacheclear) — Execute artisan cache:clear
28-
* [`artisan:config:clear`](#artisanconfigclear) — Execute artisan config:clear
29-
* [`artisan:config:cache`](#artisanconfigcache) — Execute artisan config:cache
30-
* [`artisan:route:cache`](#artisanroutecache) — Execute artisan route:cache
31-
* [`artisan:view:clear`](#artisanviewclear) — Execute artisan view:clear
32-
* [`artisan:view:cache`](#artisanviewcache) — Execute artisan view:cache
33-
* [`artisan:optimize`](#artisanoptimize) — Execute artisan optimize
34-
* [`artisan:optimize:clear`](#artisanoptimizeclear) — Execute artisan optimize:clear
35-
* [`artisan:queue:restart`](#artisanqueuerestart) — Execute artisan queue:restart
36-
* [`artisan:storage:link`](#artisanstoragelink) — Execute artisan storage:link
37-
* [`artisan:horizon:assets`](#artisanhorizonassets) — Execute artisan horizon:assets
38-
* [`artisan:horizon:publish`](#artisanhorizonpublish) — Execute artisan horizon:publish
39-
* [`artisan:horizon:terminate`](#artisanhorizonterminate) — Execute artisan horizon:terminate
40-
* [`artisan:telescope:clear`](#artisantelescopeclear) — Execute artisan telescope:clear
41-
* [`artisan:telescope:prune`](#artisantelescopeprune) — Execute artisan telescope:prune
42-
* [`artisan:telescope:publish`](#artisantelescopepublish) — Execute artisan telescope:publish
43-
* [`artisan:nova:publish`](#artisannovapublish) — Execute artisan nova:publish
44-
* [`artisan:event:clear`](#artisaneventclear) — Execute artisan event:clear
45-
* [`artisan:event:cache`](#artisaneventcache) — Execute artisan event:cache
46-
* [`deploy:public_disk`](#deploypublic_disk) — Make symlink for public disk
20+
* [`artisan:down`](#artisandown) — Put the application into maintenance / demo mode
21+
* [`artisan:up`](#artisanup) — Bring the application out of maintenance mode
22+
* [`artisan:db:seed`](#artisandbseed) — Seed the database with records
23+
* [`artisan:migrate`](#artisanmigrate) — Run the database migrations
24+
* [`artisan:migrate:fresh`](#artisanmigratefresh) — Drop all tables and re-run all migrations
25+
* [`artisan:migrate:rollback`](#artisanmigraterollback) — Rollback the last database migration
26+
* [`artisan:migrate:status`](#artisanmigratestatus) — Show the status of each migration
27+
* [`artisan:cache:clear`](#artisancacheclear) — Flush the application cache
28+
* [`artisan:config:cache`](#artisanconfigcache) — Create a cache file for faster configuration loading
29+
* [`artisan:config:clear`](#artisanconfigclear) — Remove the configuration cache file
30+
* [`artisan:event:cache`](#artisaneventcache) — Discover and cache the application\'s events and listeners
31+
* [`artisan:event:clear`](#artisaneventclear) — Clear all cached events and listeners
32+
* [`artisan:event:list`](#artisaneventlist) — List the application\'s events and listeners
33+
* [`artisan:optimize`](#artisanoptimize) — Cache the framework bootstrap files
34+
* [`artisan:optimize:clear`](#artisanoptimizeclear) — Remove the cached bootstrap files
35+
* [`artisan:route:cache`](#artisanroutecache) — Create a route cache file for faster route registration
36+
* [`artisan:route:clear`](#artisanrouteclear) — Remove the route cache file
37+
* [`artisan:route:list`](#artisanroutelist) — List all registered routes
38+
* [`artisan:storage:link`](#artisanstoragelink) — Create the symbolic links configured for the application
39+
* [`artisan:view:cache`](#artisanviewcache) — Compile all of the application\'s Blade templates
40+
* [`artisan:view:clear`](#artisanviewclear) — Clear all compiled view files
41+
* [`artisan:queue:failed`](#artisanqueuefailed) — List all of the failed queue jobs
42+
* [`artisan:queue:flush`](#artisanqueueflush) — Flush all of the failed queue jobs
43+
* [`artisan:queue:restart`](#artisanqueuerestart) — Restart queue worker daemons after their current job
44+
* [`artisan:horizon`](#artisanhorizon) — Start a master supervisor in the foreground
45+
* [`artisan:horizon:clear`](#artisanhorizonclear) — Delete all of the jobs from the specified queue
46+
* [`artisan:horizon:continue`](#artisanhorizoncontinue) — Instruct the master supervisor to continue processing jobs
47+
* [`artisan:horizon:list`](#artisanhorizonlist) — List all of the deployed machines
48+
* [`artisan:horizon:pause`](#artisanhorizonpause) — Pause the master supervisor
49+
* [`artisan:horizon:purge`](#artisanhorizonpurge) — Terminate any rogue Horizon processes
50+
* [`artisan:horizon:status`](#artisanhorizonstatus) — Get the current status of Horizon
51+
* [`artisan:horizon:terminate`](#artisanhorizonterminate) — Terminate the master supervisor so it can be restarted
52+
* [`artisan:telescope:clear`](#artisantelescopeclear) — Clear all entries from Telescope
53+
* [`artisan:telescope:prune`](#artisantelescopeprune) — Prune stale entries from the Telescope database
4754
* [`deploy`](#deploy) — Deploy your project
4855

4956
## Config
@@ -80,13 +87,18 @@
8087

8188

8289
## Tasks
90+
### artisan:down
91+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Adown%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
92+
93+
94+
8395
### artisan:up
8496
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aup%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
8597

8698

8799

88-
### artisan:down
89-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Adown%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
100+
### artisan:db:seed
101+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Adb%3Aseed%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
90102

91103

92104

@@ -110,38 +122,33 @@
110122

111123

112124

113-
### artisan:db:seed
114-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Adb%3Aseed%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
115-
116-
117-
118125
### artisan:cache:clear
119126
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Acache%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
120127

121128

122129

123-
### artisan:config:clear
124-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aconfig%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
130+
### artisan:config:cache
131+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aconfig%3Acache%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
125132

126133

127134

128-
### artisan:config:cache
129-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aconfig%3Acache%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
135+
### artisan:config:clear
136+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aconfig%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
130137

131138

132139

133-
### artisan:route:cache
134-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aroute%3Acache%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
140+
### artisan:event:cache
141+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aevent%3Acache%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
135142

136143

137144

138-
### artisan:view:clear
139-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aview%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
145+
### artisan:event:clear
146+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aevent%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
140147

141148

142149

143-
### artisan:view:cache
144-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aview%3Acache%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
150+
### artisan:event:list
151+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aevent%3Alist%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
145152

146153

147154

@@ -155,8 +162,18 @@
155162

156163

157164

158-
### artisan:queue:restart
159-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aqueue%3Arestart%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
165+
### artisan:route:cache
166+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aroute%3Acache%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
167+
168+
169+
170+
### artisan:route:clear
171+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aroute%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
172+
173+
174+
175+
### artisan:route:list
176+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aroute%3Alist%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
160177

161178

162179

@@ -165,60 +182,80 @@
165182

166183

167184

168-
### artisan:horizon:assets
169-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%3Aassets%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
185+
### artisan:view:cache
186+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aview%3Acache%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
170187

171188

172189

173-
### artisan:horizon:publish
174-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%3Apublish%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
190+
### artisan:view:clear
191+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aview%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
175192

176193

177194

178-
### artisan:horizon:terminate
179-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%3Aterminate%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
195+
### artisan:queue:failed
196+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aqueue%3Afailed%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
180197

181198

182199

183-
### artisan:telescope:clear
184-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Atelescope%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
200+
### artisan:queue:flush
201+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aqueue%3Aflush%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
185202

186203

187204

188-
### artisan:telescope:prune
189-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Atelescope%3Aprune%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
205+
### artisan:queue:restart
206+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aqueue%3Arestart%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
190207

191208

192209

193-
### artisan:telescope:publish
194-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Atelescope%3Apublish%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
210+
### artisan:horizon
211+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
195212

196213

197214

198-
### artisan:nova:publish
199-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Anova%3Apublish%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
215+
### artisan:horizon:clear
216+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
200217

201218

202219

203-
### artisan:event:clear
204-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aevent%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
220+
### artisan:horizon:continue
221+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%3Acontinue%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
205222

206223

207224

208-
### artisan:event:cache
209-
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Aevent%3Acache%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
225+
### artisan:horizon:list
226+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%3Alist%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
227+
210228

211229

230+
### artisan:horizon:pause
231+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%3Apause%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
212232

213-
### deploy:public_disk
214-
[Source](https://github.com/deployphp/deployer/search?q=%22deploy%3Apublic_disk%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
215233

216-
Task deploy:public_disk support the public disk.
217-
To run this task automatically, please add below line to your deploy.php file
218234

219-
before('deploy:symlink', 'deploy:public_disk');
235+
### artisan:horizon:purge
236+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%3Apurge%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
237+
238+
239+
240+
### artisan:horizon:status
241+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%3Astatus%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
242+
243+
244+
245+
### artisan:horizon:terminate
246+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Ahorizon%3Aterminate%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
247+
248+
249+
250+
### artisan:telescope:clear
251+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Atelescope%3Aclear%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
252+
253+
254+
255+
### artisan:telescope:prune
256+
[Source](https://github.com/deployphp/deployer/search?q=%22artisan%3Atelescope%3Aprune%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)
257+
220258

221-
[Laravel filesystem configuration](https://laravel.com/docs/5.2/filesystem#configuration)
222259

223260
### deploy
224261
[Source](https://github.com/deployphp/deployer/search?q=%22deploy%22+in%3Afile+language%3Aphp+path%3Arecipe+filename%3Alaravel.php)

0 commit comments

Comments
 (0)