Skip to content

Instantly share code, notes, and snippets.

@klaser
Created July 31, 2020 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klaser/10a76dbee7b88897c5cf501b284a08bd to your computer and use it in GitHub Desktop.
Save klaser/10a76dbee7b88897c5cf501b284a08bd to your computer and use it in GitHub Desktop.
##
# Custom Aliases
#
alias test='vendor/bin/phpunit --exclude-group=dusk'
alias test:f='vendor/bin/phpunit --filter'
alias test:g='vendor/bin/phpunit --group'
alias rebuild='php artisan migrate:fresh --seed'
alias autoload='composer dump-autoload -o'
alias routes='php artisan route:list'
alias check='php artisan self-diagnosis'
alias m2='php bin/magento'
alias backup='sudo cp /etc/nginx/sites-available/* /etc/nginx/sites-backup'
alias restore-backup='sudo cp /etc/nginx/sites-backup/* /etc/nginx/sites-available'
function fresh-server() {
sudo service php5.6-fpm restart
sudo service php7.0-fpm restart
sudo service php7.1-fpm restart
sudo service php7.2-fpm restart
sudo service php7.3-fpm restart
sudo service nginx restart
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment