Last active
July 12, 2021 17:22
-
-
Save paulredmond/7bbb8fcc3036fe2db655bbbbaf623cf4 to your computer and use it in GitHub Desktop.
Aliases to clear Laravel logs
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
# Must run from the root of a Laravel app | |
alias clearlog="truncate -s 0 $PWD/storage/logs/laravel.log" | |
alias clearlogs="truncate -s 0 $PWD/storage/logs/*.log" | |
# Or using git rev-parse | |
alias clearlog="truncate -s 0 $(git rev-parse --show-toplevel)/storage/logs/laravel.log" | |
alias clearlogs="truncate -s 0 $(git rev-parse --show-toplevel)/storage/logs/*.log" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment