Last active
January 8, 2021 01:16
-
-
Save fawzanm/242e468c8c385482f06a48d2c4074b57 to your computer and use it in GitHub Desktop.
Frequently used command aliases for Laravel Development
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
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