-
-
Save AbiruzzamanMolla/a78ea03579226c9dd3dbac05a0b5f5a3 to your computer and use it in GitHub Desktop.
Create An Alias For Laravel and Codecept in Windows PowerShell.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Laravel Artisan Commands Shortcut | |
function art($arg1,$arg2,$arg3,$arg4,$arg5) { php artisan $arg1 $arg2 $arg3 $arg4 $arg5} | |
Set-Alias a art | |
#### Use as by default Alias ##### | |
# ge:r => generate:resource | |
# ge:c => generate:controller | |
# ge:s => generate:seed | |
# ge:m => generate:model | |
# ge:sc => generate:scaffold | |
# m:m => migrate:make | |
# m:f => migrate:refresh | |
# m:re => migrate:reset | |
# m:b => migrate:rollback | |
# Try it | |
## PS c:\laravel_proj> a ge:r post | |
# For CodeCept | |
## Assuming codecept.phar file is in your current working Directory | |
function codecept($arg1,$arg2) { php codecept.phar $arg1 $arg2 } | |
Set-Alias c codecept | |
# *** Other *** # | |
function www($arg1) { | |
$arg="c:/xampp/htdocs/" + $arg1 | |
cd $arg | |
} | |
## Try it: | |
# PS C:\> www | |
# OR, | |
# PS C:\> www laravel_proj |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment