How to clear Laravel log file with terminal

avatar
Aug 23, 2022 · Snippet · 1 min, 87 words

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

Comments

No comments yet…