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

Laravel How to Use $loop Variable in Foreach

snippet

Did you forget to use the [uses()] function? get this error after install pest in laravel

snippet

How to validation with custom message in controller of Laravel

snippet

How to add bootstrap pagination in Laravel

snippet

How to pass input data outside of Livewire component in Livewire 3

snippet
Random Stories

Laravel Queue with Parameters Step by Step Example

snippet

How to pass input data outside of Livewire component in Livewire 3

snippet

JavaScript How Object.is() Method Works

snippet

How to Use Sleep in Javascript

snippet

JavaScript Add Line Breaks to Javascript Alert Box

snippet