Skip to content

Instantly share code, notes, and snippets.

@devSarry
Last active February 28, 2018 10:10
Show Gist options
  • Save devSarry/0b6fd7939bebb215c9fa4c4ffbce2efc to your computer and use it in GitHub Desktop.
Save devSarry/0b6fd7939bebb215c9fa4c4ffbce2efc to your computer and use it in GitHub Desktop.
Laravel Powershell Commands -- Place in %UserProfile%\My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
function art($arg1,$arg2,$arg3,$arg4,$arg5) { php artisan $arg1 $arg2 $arg3 $arg4 $arg5}
function migrate () {
art migrate
}
function migrate:r () {
php artisan migrate:refresh; php artisan migrate --seed
}
function c:i () {
composer install
}
function c:u () {
composer update
}
function c:r ($arg1, $arg2) {
composer require $arg1 $arg2
}
function vu(){Set-Location %UserProfile%\Homestead; vagrant up;}
function vssh($arg) {Set-Location %UserProfile%\Homestead; vagrant ssh $arg}
function nah() {git reset --hard; git clean -df}
function gl () {
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment