Created
December 17, 2019 14:07
-
-
Save morales2k/2a8fa79fe7d8e171fe7512a4c323a4f8 to your computer and use it in GitHub Desktop.
Clear laradock workspace laravel project cache without keeping the terminal bound inside the workspace at the end.
This file contains hidden or 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 cddocker='cd ~/laradock' #path to your laradock folder | |
# Get on your workspace move to the laravel directory and invoke artisan commands to clear | |
# caches without keeping your terminal inside the workspace at the end. | |
function wipe-caches() { | |
( cddocker && docker-compose exec --user laradock workspace bash -c "cd laravel && php artisan config:clear && php artisan cache:clear" ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment