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

Preview Laravel Mailable's Blade template

snippet

Go to specific page number by controller in Laravel

snippet

Laravel Calculate Estimated Reading Time

snippet

Getting error to install php artisan ui react --auth for Laravel react ui the error is Could not resolve dependency: peer vite@"^3.0.0" from @vitejs/[email protected]

snippet
Random Stories

Laravel Pruning Failed Jobs

snippet

Tailwind dynamic modal with javascript

snippet

Laravel Redis Caching Performance is Very Slow in Laragon

snippet

Get attribute and class not active in Html

snippet

JavaScript Find Nth Root of Number

snippet