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 protect .env file in Laravel.

Step:1 go to in your project and open .htaccess.

Step:2 Then write this code in .htaccess file

<Files .env>
    order allow,deny
    Deny from all
</Files>

Step:3 After save you have run this code in your terminal
php artisan c:cache
After you can check www.yourproject_name/.env ,Then you will get like this. I hope It will work properly.