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 Custom mapToRedirect Route Macro

snippet

Login With Email Or Username In One Field in Laravel

snippet

Laravel 10 Usage of latest() for Eloquent Queries

snippet

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

snippet

The List of Macroable Laravel Classes

snippet
Random Stories

How to use paginator in Laravel API resources by default

snippet

2 dimensional array sum the value

snippet

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

snippet

Laravel 10 Usage of latest() for Eloquent Queries

snippet

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

snippet