Created
March 31, 2019 11:38
-
-
Save arukompas/989dfdf01f599f8876321546eed38b3d to your computer and use it in GitHub Desktop.
Laravel/NodeJS aliases
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
# Install Composer and Node packages. Replace "npm" with "yarn" if you're using Yarn | |
alias install="composer install && npm install" | |
# Just an even shorter alias to "install" above | |
alias i="install" | |
# I call it "Build Resources" - br. Install packages, run the migrations and build the frontend resources | |
alias br="install && php artisan migrate && npm run dev" | |
# "Build Resources & Watch" - brw. Same as above, but also watch for file changes | |
alias brw="install && php artisan migrate && npm run watch" | |
# PHP Artisan commands | |
alias art="php artisan" | |
# Even shorter alias for Artisan commands, if you perfer | |
alias a="php artisan" | |
# Launch a Tinker session | |
alias tinker="php artisan tinker" | |
# Run the Laravel Queue worker. Add your additional queues there if you have any, separated by commas | |
alias work="php artisan queue:work --queue=default --tries=3 --timeout=90" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment