How to clear Laravel log file with terminal
Published: Aug 23, 2022
- Updated: Aug 31, 2022
It's very easy to clear your Laravel log file with terminal. ➡️ Go to your project file open the terminal. Afterward just past the line 👇
echo "" > storage/logs/laravel.log
or
truncate -s 0 storage/logs/laravel.log
Share on Social Media