From 729339c7808f65b95d9fc68f67fed45336ec6eef Mon Sep 17 00:00:00 2001 From: Luiz Guilherme Fonseca Rosa Date: Tue, 2 Oct 2018 21:37:02 -0300 Subject: [PATCH 1/2] Update laravel.plugin.zsh Add some laravel aliases --- plugins/laravel/laravel.plugin.zsh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/plugins/laravel/laravel.plugin.zsh b/plugins/laravel/laravel.plugin.zsh index ed932ee89..7ddfd85ba 100644 --- a/plugins/laravel/laravel.plugin.zsh +++ b/plugins/laravel/laravel.plugin.zsh @@ -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' From c2113d7cc67e2865a4692918198fba27e8360fe5 Mon Sep 17 00:00:00 2001 From: Luiz Guilherme Fonseca Rosa Date: Tue, 2 Oct 2018 21:44:26 -0300 Subject: [PATCH 2/2] Create Laravel plugin README --- plugins/laravel/README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 plugins/laravel/README.md diff --git a/plugins/laravel/README.md b/plugins/laravel/README.md new file mode 100644 index 000000000..c7ae17f80 --- /dev/null +++ b/plugins/laravel/README.md @@ -0,0 +1,39 @@ +# Laravel + +Enable some cool aliases for Laravel [artisan console](https://laravel.com/docs/5.7/artisan). To use it, add `laravel` to the plugins array of your zshrc file: +``` +plugins=(... laravel) +``` + +| 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 | Description | +|:-:|:-:| +| `pacac` | `php artisan cache:clear` | +| `pacoc` | `php artisan config:clear` | +| `pavic` | `php artisan view:clear` | +| `paroc` | `php artisan route:clear` |