Created
August 14, 2024 06:21
-
-
Save jpalala/126fffe9a1ada79f951a508ae28b9bb4 to your computer and use it in GitHub Desktop.
artisan shortened command
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
# Add this function to your ~/.zshrc file | |
art() { | |
# Define a function with a case statement | |
case $1 in | |
"cc") | |
php artisan config:clear && php artisan config:cache | |
# Add your code for option 1 here | |
;; | |
"oc") | |
php artisan optimize:clear | |
# Add your code for option 2 here | |
;; | |
*) | |
php artisan | |
;; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment