Skip to content

Instantly share code, notes, and snippets.

@acip
Created December 10, 2018 09:20
Show Gist options
  • Save acip/628891fe1a650ee2fd81c043742e2663 to your computer and use it in GitHub Desktop.
Save acip/628891fe1a650ee2fd81c043742e2663 to your computer and use it in GitHub Desktop.
Git post-checkout hook to refresh caches for Laravel projects
#!/bin/bash
echo -e "\e[1m\e[94mpost checkout: renew Laravel caches.\e[0m"
php artisan cache:clear
php artisan config:cache
php artisan route:cache
php artisan view:clear
@Daniel-johnson67
Copy link

echo -e "\e[1m\e[94mpost checkout: renew Laravel caches.\e[0m"
php artisan cache:clear
php artisan config:cache
php artisan route:cache
php artisan view:clea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment