Unverified Commit bc14a2c5 authored by Robby Russell's avatar Robby Russell Committed by GitHub
Browse files

Merge pull request #7194 from luizguilhermefr/master

[Laravel] Add aliases and README
parents e8318e4a ed401bc5
# 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. 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) plugins=(... laravel)
``` ```
## Aliases | Alias | Description |
|:-:|:-:|
| `artisan` | `php artisan` |
| `pas` | `php artisan serve` |
## 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 | Command | Description | | Alias | Description |
|-----------|--------------------------|----------------------| |:-:|:-:|
| artisan | `php artisan` | Main Artisan command | | `pacac` | `php artisan cache:clear` |
| bob | `php artisan bob::build` | Main Bob command | | `pacoc` | `php artisan config:clear` |
| `pavic` | `php artisan view:clear` |
| `paroc` | `php artisan route:clear` |
#!zsh #!zsh
alias artisan='php artisan' alias artisan='php artisan'
alias bob='php artisan bob::build' 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'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment