Created
December 10, 2018 09:20
-
-
Save acip/628891fe1a650ee2fd81c043742e2663 to your computer and use it in GitHub Desktop.
Git post-checkout hook to refresh caches for Laravel projects
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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