Skip to content

Instantly share code, notes, and snippets.

@fawzanm
Last active January 8, 2021 01:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fawzanm/242e468c8c385482f06a48d2c4074b57 to your computer and use it in GitHub Desktop.
Save fawzanm/242e468c8c385482f06a48d2c4074b57 to your computer and use it in GitHub Desktop.
Frequently used command aliases for Laravel Development
alias fire="git add .; git commit -am 'Emergency Updates'; git push"
alias pa="php artisan"
alias msf="php artisan migrate:fresh --seed"
alias pac="php artisan config:cache; php artisan cache:clear; php artisan config:clear; php artisan view:clear"
alias cda="composer dump-autoload"
alias pad="php artisan dusk"
alias padf="php artisan dusk --filter"
function log_clear {
DIRECTORY=storage/logs/
if [[ -d "$DIRECTORY" ]]; then
echo > storage/logs/laravel*.log
fi
}
alias ll='tail -f -n 450 storage/logs/laravel*.log | grep -i -E "^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" --color'
alias nah="git reset --hard;git clean -df;"
alias ginit="git init; open http://github.new"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment