In my Laravel project i want to clear my laravel.log file but i have no idea how to do it. so i found a solution on it.
First of all you have to navigate to your project storage/logs location then you have to type vim laravel.log command to enter in the laravel.log file.
Solution:
- vim laravel.log
- Then type ggdG
- then :wq save and quit
Notes: gg – moves cursor to first line
d – delete
G – to the end of the file
Resources : https://stackoverflow.com/questions/28127495/in-phps-laravel-how-do-i-clear-laravel-log
Laravel 5.5 CRUD Tutorial, Introduction And Agenda Overview, Laravel Training Part – 1 DevopsSchool
Latest posts by Chandan Kumar (see all)
- Top 10 DevOps Blogs and Websites To Follow in 2023 - December 13, 2022
- How To Set Up Apache Virtual Hosts on Ubuntu 20.04.2 LTS - October 28, 2021
- How to Fix ” Vue packages version mismatch:” error in Laravel 5.5 - April 15, 2021