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 Remove Old Images of Users in Laravel?

How to Remove Old Images of Users in Laravel?

Uploading Profile Image of Users Click

Step 1. Go to app/Http/Controllers/HomeController.php file and define the deleteOldImage function.

Step 2. Use Storage class file.

Step 3. Write the success message code within home.blade.php file.

After uploading new Profile Image, the old one Image would be deleted from storage file.