ohmyzsh/plugins/laravel/laravel.plugin.zsh
2021-09-07 19:43:22 +02:00

73 lines
2.5 KiB
Bash

#!zsh
alias artisan='php artisan'
alias bob='php artisan bob::build'
# Development
alias pas='php artisan serve'
# Database
alias pam='php artisan migrate'
alias pamf='php artisan migrate:fresh'
alias pamfs='php artisan migrate:fresh --seed'
alias pamr='php artisan migrate:rollback'
alias pads='php artisan db:seed'
# Makers
alias pamm='php artisan make:model'
alias pamc='php artisan make:controller'
alias pams='php artisan make:seeder'
alias pamt='php artisan make:test'
alias pamfa='php artisan make:factory'
alias pamp='php artisan make:policy'
alias pame='php artisan make:event'
alias pamj='php artisan make:job'
alias paml='php artisan make:listener'
alias pamn='php artisan make:notification'
alias pampp='php artisan make:provider'
# Clears
alias pacac='php artisan cache:clear'
alias pacoc='php artisan config:clear'
alias pavic='php artisan view:clear'
alias paroc='php artisan route:clear'
# queues
alias paqf='php artisan queue:failed'
alias paqft='php artisan queue:failed-table'
alias paql='php artisan queue:listen'
alias paqr='php artisan queue:retry'
alias paqt='php artisan queue:table'
alias paqw='php artisan queue:work'
# Nwidart Modules
alias pmake='php artisan module:make'
alias plist='php artisan module:list'
alias pmigrate='php artisan module:migrate'
alias prollback='php artisan module:migrate-rollback'
alias prefresh='php artisan module:migrate-refresh'
alias preset='php artisan module:migrate-reset'
alias pseed='php artisan module:seed'
alias penable='php artisan module:enable'
alias pdisable='php artisan module:disable'
# Nwidart Modules Generator Commands
alias pmcommand='php artisan module:make-command'
alias pmmigration='php artisan module:make-migration'
alias pmseed='php artisan module:make-seed'
alias pmcontroller='php artisan module:make-controller'
alias pmmodel='php artisan module:make-model'
alias pmprovider='php artisan module:make-provider'
alias pmmiddleware='php artisan module:make-middleware'
alias pmmail='php artisan module:make-mail'
alias pmnotification='php artisan module:make-notification'
alias pmlistener='php artisan module:make-listener'
alias pmrequest='php artisan module:make-request'
alias pmevent='php artisan module:make-event'
alias pmjob='php artisan module:make-job'
alias pmrprovider='php artisan module:route-provider'
alias pmfactory='php artisan module:make-factory'
alias pmpolicy='php artisan module:make-policy'
alias pmrule='php artisan module:make-rule'
alias pmresource='php artisan module:make-resource'
alias pmtest='php artisan module:make-test'