Skip to content

Instantly share code, notes, and snippets.

@mustafatoker
Created August 27, 2017 16:53
Show Gist options
  • Save mustafatoker/0f40c986a50b064a985319e5d08994fb to your computer and use it in GitHub Desktop.
Save mustafatoker/0f40c986a50b064a985319e5d08994fb to your computer and use it in GitHub Desktop.
Laravel Bash Aliases
alias art="php artisan"
alias c='composer'
alias cclear='php artisan cache:clear'
alias cdo="composer dump-autoload -o"
alias cu='composer update'
alias ci='composer install'
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
alias d='docker'
alias d='php artisan db:seed'
alias doc='docker-compose'
alias dm='docker-machine'
alias g='git'
alias gs='git status'
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias migrate="php artisan migrate"
alias nah='git reset --hard;git clean -df'
alias ll="ls -lh"
alias la='ls -lAh'
alias lr-i='composer create-project --prefer-dist laravel/laravel'
alias vu='cd ~/Homestead && vagrant up'
alias vs='vagrant suspend'
alias vssh='vagrant ssh'
alias vhalt="vh"
alias vm='ssh [email protected] -p 2222'
alias par:l='php artisan route:list'
alias serve="php artisan serve"
alias tinker="php artisan tinker"
alias wip="git add . && git commit -m 'wip'"
alias eh="subl /private/etc/hosts"
seed() {
php artisan db:seed --class="$@"
;}
# Misc PHP
t() {
if [ -f vendor/bin/phpunit ]; then
vendor/bin/phpunit "$@"
else
phpunit "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment