mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-20 04:40:08 +00:00
Merge pull request #7194 from luizguilhermefr/master
[Laravel] Add aliases and README
This commit is contained in:
commit
bc14a2c578
2 changed files with 56 additions and 12 deletions
|
@ -1,19 +1,40 @@
|
|||
# Laravel plugin
|
||||
# Laravel
|
||||
|
||||
This plugin adds aliases and autocompletion for Laravel [Artisan](https://laravel.com/docs/artisan) and [Bob](http://daylerees.github.io/laravel-bob/) command-line interfaces.
|
||||
|
||||
**NOTE:** completion might not work for recent Laravel versions since it hasn't been updated since 2012.
|
||||
In that case, check out plugins `laravel4` and `laravel5`.
|
||||
|
||||
To use it, add `laravel` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
```
|
||||
plugins=(... laravel)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `artisan` | `php artisan` |
|
||||
| `pas` | `php artisan serve` |
|
||||
|
||||
| Alias | Command | Description |
|
||||
|-----------|--------------------------|----------------------|
|
||||
| artisan | `php artisan` | Main Artisan command |
|
||||
| bob | `php artisan bob::build` | Main Bob command |
|
||||
## Database
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `pam` | `php artisan migrate` |
|
||||
| `pamf` | `php artisan migrate:fresh` |
|
||||
| `pamfs` | `php artisan migrate:fresh --seed` |
|
||||
| `pamr` | `php artisan migrate:rollback` |
|
||||
| `pads` | `php artisan db:seed` |
|
||||
|
||||
## Makers
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `pamm` | `php artisan make:model` |
|
||||
| `pamc` | `php artisan make:controller` |
|
||||
| `pams` | `php artisan make:seeder` |
|
||||
| `pamt` | `php artisan make:test` |
|
||||
|
||||
## Clears
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `pacac` | `php artisan cache:clear` |
|
||||
| `pacoc` | `php artisan config:clear` |
|
||||
| `pavic` | `php artisan view:clear` |
|
||||
| `paroc` | `php artisan route:clear` |
|
||||
|
|
|
@ -1,3 +1,26 @@
|
|||
#!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'
|
||||
|
||||
|
||||
# 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'
|
||||
|
|
Loading…
Reference in a new issue