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>Code language: HTML, XML (xml)

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.

MotoShare.in is your go-to platform for adventure and exploration. Rent premium bikes for epic journeys or simple scooters for your daily errands—all with the MotoShare.in advantage of affordability and ease.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals