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

firstOrNew, firstOrCreate, firstOr, and updateOrCreate methods in Laravel

snippet

How to create Laravel single table migrate

snippet

Create a job in Laravel update version

snippet

Laravel Calculate Estimated Reading Time

snippet

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

snippet
Random Stories

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

snippet

Two or One required filed in Laravel validation

snippet

JavaScript Find Nth Root of Number

snippet

How to Use Sleep in Javascript

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