Skip to content

Instantly share code, notes, and snippets.

@morales2k morales2k/.profile

Created Dec 17, 2019
What would you like to do?
Clear laradock workspace laravel project cache without keeping the terminal bound inside the workspace at the end.
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
You can’t perform that action at this time.