logo logo
  • Articles
  • Snippets
  • Topics
    • Login
    • Register

    • Mode:

How to clear Laravel log file with terminal

  • Aug 23, 2022
  • Snippet · 1 min
  • 87 words
  • Share profile in a message
  • Save your profile to PDF
  • Lock profile

  • Profile settings
  • Like (0)
  • Favorite (0)

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

Laravel
avatar
Md Najmul Hasan

Similar Stories

How to use paginator in Laravel API resources by default

snippet

In Laravel (AND) OR (AND) Query

snippet

Reuse The Same FormRequest Class for Both store() and update() in Laravel

snippet

Laravel Queue with Parameters Step by Step Example

snippet

Laravel How to Use $loop Variable in Foreach

snippet
Random Stories

Carbon this month all days in an array in PHP

snippet

How to copy past data from clipboard in windows to virtual box Linux

snippet

Add extra string in Laravel from search query result by pluck

snippet

Excel VBA Split Excel Sheet into Multiple Sheets

snippet

Remove everything from a folder in Linux

snippet