Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to clear laravel.log in PHP Laravel

laravel.log is a file that collects all the Log messages by default into it

Sometimes you need to truncate this log file for troubleshooting the application

Command to be used to clear laravel.log:
cd <your project home directory>
truncate -s 0 storage/logs/laravel.log

How to verify the above solution:
vi storage/logs/laravel.log (This must show you the laravel.log having no lines)

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.