-
-
Save lesstif/9e895302c499e8d41e35cdbb08201d26 to your computer and use it in GitHub Desktop.
Create An Alias For Laravel and Codecept in Windows PowerShell.
This file contains 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