Skip to content

Instantly share code, notes, and snippets.

@morales2k
Created December 17, 2019 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morales2k/2a8fa79fe7d8e171fe7512a4c323a4f8 to your computer and use it in GitHub Desktop.
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.
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