How to stop .env open from URL in laravel?
Hello Guys,
Setup your laravel project in shared hosting then you have to secure you env file. at that time hide your env file from public folder. in env file we store very important data that's why disable env file from show. hide your .env file just put following code in .htaccess file
Put At Last In .htaccess File
<FilesMatch ".env">
Order allow,deny
Deny from all
</FilesMatch>
- How to Notifications With database Driver in Laravel 11?
- How to Send Email Via Notification in Laravel 11?
- How to Install and Configure Laravel 11 Debugbar?
- How to Like Dislike System in Laravel 11?
- How to Paginate a Model with Relationship in Laravel 11?
- Laravel 11 Upload Files to Amazon S3 Example
- Laravel 11 Send WhatsApp Messages Example
- Laravel 11 Rest API Authentication Using JWT Tutorial