Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 484 Bytes

aliases.md

File metadata and controls

17 lines (14 loc) · 484 Bytes

Here are some aliases that you can add to your ~/.bash_profile file.

alias g:c="php artisan generate:controller"
alias g:m="php artisan generate:model"
alias g:v="php artisan generate:view"
alias g:mig-"php artisan generate:migration"
alias g:a="php artisan generate:assets"
alias g:t="php artisan generate:test"
alias g:r="php artisan generate:resource"

Now, for example, to generate a new controller and methods, you can simply do:

g:c admin index edit