-
Notifications
You must be signed in to change notification settings - Fork 0
/
laravel-au.plugin.zsh
235 lines (214 loc) · 6.68 KB
/
laravel-au.plugin.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# artisan
function artisan() {
if [ -f artisan ]; then
php artisan $*
else
php bin/artisan $*
fi
}
# phpunit
function php_unit() {
if [ -f vendor/bin/phpunit ]; then
vendor/bin/phpunit $*
else
phpunit $*
fi
}
## phpunit
alias pu="php_unit"
## Filter which tests to run
alias puf="php_unit --filter"
## Filter which testsuite to run
alias put="php_unit --testsuite"
## Only runs tests from the specified group(s)
alias pug="php_unit --group"
## Exclude tests from the specified group(s)
alias pueg="php_unit --exclude-group"
## List available test groups
alias pulg="php_unit --list-groups"
## List available test suites
alias puls="php_unit --list-suites"
## List available tests
alias pult="php_unit --list-tests"
## List available tests in XML format
alias pultx="php_unit --list-tests-xml"
## Only search for test in files with specified suffix(es). Default: Test.php,.phpt
alias puts="php_unit --test-suffix"
# general
alias a='artisan'
## Display this application version
alias av='artisan -V'
## Remove the compiled class file
alias acc='artisan clear-compiled'
## Put the application into maintenance mode
alias adow='artisan down'
## Display the current framework environment
alias aenv='artisan env'
## Displays help for a command
alias ahel='artisan help'
## Display an inspiring quote
alias ains='artisan inspire'
## Lists commands
alias alis='artisan list'
## Run the database migrations
alias amig='artisan migrate'
## 2 migrate
alias migrate="artisan migrate"
## Cache the framework bootstrap files
alias aopt='artisan optimize'
## Swap the front-end scaffolding for the application
alias apre='artisan preset'
## preset
alias apre='artisan preset'
## Serve the application on the PHP development server
alias aser='artisan serve'
## 2 serve
alias serve='artisan serve'
## Interact with your application
alias atin='artisan tinker'
## 2 tinker
alias tinker="artisan tinker"
## Swap the front-end scaffolding for the application
alias aui='artisan ui'
## Bring the application out of maintenance mod
alias aup='artisan up'
# auth
## Flush expired password reset tokens
alias aaucr='artisan auth:clear-resets'
# cache
## Flush the application cache
alias acacle='artisan cache:clear'
## Remove an item from the cache
alias acafor='artisan cache:forget'
## Create a migration for the cache database table
alias acatab='artisan cache:table'
# config
## reate a cache file for faster configuration loading
alias acocac='artisan config:cache'
## Remove the configuration cache file
alias acocle='artisan config:clear'
# db
## Seed the database with records
alias adbsee='artisan db:seed'
## Drop all tables, views, and types
alias adbwip='artisan db:wipe'
# event
## Discover and cache the application's events and listeners
alias aevcac='artisan event:cache'
## Clear all cached events and listeners
alias aevcle='artisan event:clear'
## Generate the missing events and listeners based on registration
alias aevgen='artisan event:generate'
## List the application's events and listeners
alias aevlis='artisan event:list'
# key
## Set the application key
alias akegen='artisan key:generate'
# make
## Create a new channel class
alias amacha='artisan make:channel'
## Create a new Artisan command
alias amacom='artisan make:command'
## Create a new controller class
alias amacon='artisan make:controller'
## Create a new event class
alias amaeve='artisan make:event'
## Create a new custom exception class
alias amaexc='artisan make:exception'
## Create a new model factory
alias amafac='artisan make:factory'
## Create a new job class
alias amajob='artisan make:job'
## Create a new event listener class
alias amalis='artisan make:listener'
## Create a new email class
alias amamai='artisan make:mail'
## Create a new middleware class
alias amamid='artisan make:middleware'
## Create a new migration file
alias amamig='artisan make:migration'
## Create a new Eloquent model class
alias amamod='artisan make:model'
## Create a new notification class
alias amanot='artisan make:notification'
## Create a new observer class
alias amaobs='artisan make:observer'
## Create a new policy class
alias amapol='artisan make:policy'
## Create a new service provider class
alias amapro='artisan make:provider'
## Create a new form request class
alias amareq='artisan make:request'
## Create a new resource
alias amares='artisan make:resource'
## Create a new validation rule
alias amarul='artisan make:rule'
## Create a new seeder class
alias amasee='artisan make:seeder'
## Create a new test class
alias amates='artisan make:test'
# migrate
## Drop all tables and re-run all migrations
alias amifre='artisan migrate:fresh'
## Create the migration repository
alias amiins='artisan migrate:install'
## Reset and re-run all migrations
alias amiref='artisan migrate:refresh'
## Rollback all database migrations
alias amires='artisan migrate:reset'
## Rollback the last database migration
alias amirol='artisan migrate:rollback'
## Show the status of each migration
alias amista='artisan migrate:status'
# notifications
## Create a migration for the notifications table
alias anotab='artisan notifications:table'
# optimize
## Remove the cached bootstrap files
alias aopcle='artisan optimize:clear'
# queue
## List all of the failed queue jobs
alias aqufai='artisan queue:failed'
## Create a migration for the failed queue jobs database table
alias aqufait='artisan queue:failed-table'
## Flush all of the failed queue jobs
alias aquflu='artisan queue:flush'
## Delete a failed queue job
alias aqufor='artisan queue:forget'
## Listen to a given queue
alias aqulis='artisan queue:listen'
## Restart queue worker daemons after their current job
alias aqures='artisan queue:restart'
## Retry a failed queue job
alias aquret='artisan queue:retry'
## Create a migration for the queue jobs database table
alias aqutab='artisan queue:table'
## Start processing jobs on the queue as a daemon
alias aquwor='artisan queue:work'
# route
## Create a route cache file for faster route registration
alias arocac='artisan route:cache'
## Remove the route cache file
alias arocle='artisan route:clear'
## List all registered routes
alias arolis='artisan route:list'
# schedule
## Run the scheduled commands
alias ascrun='artisan schedule:run'
# session
## Create a migration for the session database table
alias asetab='artisan session:table'
# storage
## Create a symbolic link from "public/storage" to "storage/app/public"
alias astlin='artisan storage:link'
# ui
## Scaffold basic login and registration views and routes
alias auiaut='artisan ui:auth'
# vendor
## Publish any publishable assets from vendor packages
alias avepub='artisan vendor:publish'
# view
## Compile all of the application's Blade templates
alias avicac='artisan view:cache'
## Clear all compiled view files
alias avicle='artisan view:clear'