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 Blade Remove the Last Comma from Foreach Loop

snippet

Delete the file or image from storage in Laravel

snippet

Laravel Calculate Estimated Reading Time

snippet

Laravel Custom mapToRedirect Route Macro

snippet

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

snippet
Random Stories

Laravel factory changed in Laravel 8

snippet

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

snippet

Laravel HTTP x-www-form-urlencoded Request Body

snippet

Upload an image and instant show or preview that image in html form

snippet

onChange select2 in livewire 3 dose not working

snippet