|
@@ -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` |
|
|
|
+
|
|
|
+## 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 |
|
|
|
-|-----------|--------------------------|----------------------|
|
|
|
-| artisan | `php artisan` | Main Artisan command |
|
|
|
-| bob | `php artisan bob::build` | Main Bob command |
|
|
|
+| Alias | Description |
|
|
|
+|:-:|:-:|
|
|
|
+| `pacac` | `php artisan cache:clear` |
|
|
|
+| `pacoc` | `php artisan config:clear` |
|
|
|
+| `pavic` | `php artisan view:clear` |
|
|
|
+| `paroc` | `php artisan route:clear` |
|